Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▲22.57ms] Passed 4 tests
An overview of server-side resources used by Agora Abandoned Cart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 73.35 ▲35.12 |
Dashboard /wp-admin | 3.65 ▲0.35 | 78.61 ▲29.72 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 82.80 ▲35.47 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 119.99 ▲18.66 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 43.37 ▲6.77 |
Abandoned Cart /wp-admin/admin.php?page=abcart | 3.49 | 66.94 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_agora_abandoned_cart_queue |
wp_agora_abandoned_cart |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Agora Abandoned Cart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.72 ▼0.68 | 1.90 ▲0.13 | 44.29 ▼0.36 |
Dashboard /wp-admin | 2,249 ▲57 | 4.86 ▼0.11 | 104.48 ▼18.00 | 40.37 ▼7.64 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.02 ▲0.00 | 40.13 ▲2.40 | 34.77 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,576 ▲33 | 18.56 ▲0.52 | 653.01 ▼26.97 | 52.35 ▲3.32 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.21 ▲0.00 | 102.54 ▲1.78 | 43.75 ▲0.57 |
Abandoned Cart /wp-admin/admin.php?page=abcart | 1,057 | 2.79 | 47.75 | 37.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_agora_abandoned_cart_queue
- wp_agora_abandoned_cart
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Trait 'AgoraAbandonedCart\\Classes\\ScheduleTrait' not found in wp-content/plugins/agora-abandoned-cart/classes/schedule-manger.class.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function AgoraAbandonedCart\\Classes\\register_activation_hook() in wp-content/plugins/agora-abandoned-cart/classes/migration-db.class.php:19
- > PHP Fatal error
Uncaught Error: Class 'AgoraAbandonedCart\\Classes\\Helpers\\InputFilterHelper' not found in wp-content/plugins/agora-abandoned-cart/admin/views/settings.tab.php:5
- > PHP Fatal error
Trait 'AgoraAbandonedCart\\Classes\\QueueManager' not found in wp-content/plugins/agora-abandoned-cart/classes/hooks.class.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'AgoraAbandonedCart\\Classes\\Helpers\\AdminPageHelper' not found in wp-content/plugins/agora-abandoned-cart/admin/views/nav.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/agora-abandoned-cart/admin/views/scheduled-notifications.tab.php:6
- > PHP Fatal error
Trait 'AgoraAbandonedCart\\Classes\\ScheduleTrait' not found in wp-content/plugins/agora-abandoned-cart/classes/dashboard.class.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'AgoraAbandonedCart\\Classes\\Helpers\\AdminPageHelper' not found in wp-content/plugins/agora-abandoned-cart/admin/views/nav.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/agora-abandoned-cart/admin/views/queue-monitor.tab.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function AgoraAbandonedCart\\Classes\\add_action() in wp-content/plugins/agora-abandoned-cart/classes/ajax.class.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce, agora, abandoned, email notifications, cart
agora-abandoned-cart/agora-abandoned-cart.php Passed 13 tests
"Agora Abandoned Cart" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
129 characters long description:
Send asynchronous emails and push notifications to your logged-in woocommerce customers, reminding them of their abandoned carts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin12,881 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,161 | 1,485 | 9,600 |
PHP | 21 | 207 | 278 | 1,657 |
CSS | 2 | 43 | 48 | 1,454 |
PO File | 1 | 61 | 74 | 149 |
SQL | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 16 | 25.00% |
▷ Public methods | 50 | 78.12% |
▷ Protected methods | 5 | 7.81% |
▷ Private methods | 9 | 14.06% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/logo.png | 15.09KB | 4.85KB | ▼ 67.87% |