Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲4.76MB] [CPU: ▲24.25ms] Passed 4 tests
Analyzing server-side resources used by MoceanAPI Abandoned Carts for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.54 ▲5.07 | 64.75 ▲20.98 |
Dashboard /wp-admin | 8.56 ▲5.25 | 73.38 ▲23.74 |
Posts /wp-admin/edit.php | 8.56 ▲5.20 | 79.57 ▲35.83 |
Add New Post /wp-admin/post-new.php | 9.40 ▲3.51 | 114.87 ▲20.08 |
Media Library /wp-admin/upload.php | 8.56 ▲5.32 | 65.89 ▲32.21 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.56 | 61.72 |
Server storage [IO: ▲4.83MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 194 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_moceanapi_abandoned_carts |
New WordPress options |
---|
moceanapi_abandoned_carts_ghost_cart_count |
fs_gdpr |
widget_theysaidso_widget |
theysaidso_admin_options |
moceanapi_abandoned_carts_version_number |
db_upgraded |
moceanapi_abandoned_carts_sms_notification_frequency |
fs_active_plugins |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by MoceanAPI Abandoned Carts for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.31 ▼1.06 | 1.74 ▼0.36 | 28.42 ▼16.44 |
Dashboard /wp-admin | 2,243 ▲55 | 5.84 ▼0.03 | 120.85 ▲7.94 | 44.97 ▼1.97 |
Posts /wp-admin/edit.php | 2,130 ▲44 | 2.01 ▼0.01 | 39.33 ▲0.30 | 33.63 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 22.18 ▼0.88 | 612.90 ▼102.20 | 59.21 ▲3.81 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.27 ▲0.06 | 96.13 ▼13.15 | 43.90 ▼2.28 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,072 | 1.72 | 23.48 | 28.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_debug_mode
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- fs_active_plugins
- fs_gdpr
- fs_accounts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/moceanapi-abandoned-carts/admin/class-moceanapi-abandoned-carts-admin-table.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/moceanapi-abandoned-carts/admin/class-moceanapi-abandoned-carts-admin.php:14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/moceanapi-abandoned-carts/admin/class-moceanapi-abandoned-carts-admin-table.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/moceanapi-abandoned-carts/admin/class-moceanapi-abandoned-carts-admin-table.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: abandon carts, sms notification, woocommerce, mocean, cart abandonment...
moceanapi-abandoned-carts/moceanapi-abandoned-carts.php 92% from 13 tests
The entry point to "MoceanAPI Abandoned Carts for WooCommerce" version 1.2.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 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
No dangerous file extensions were detected34,309 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 7,680 | 17,003 | 33,191 |
CSS | 13 | 75 | 11 | 449 |
JavaScript | 6 | 80 | 121 | 414 |
Markdown | 2 | 68 | 0 | 215 |
JSON | 1 | 0 | 0 | 27 |
SVG | 2 | 0 | 1 | 13 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 82.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,246 | |
▷ Static methods | 175 | 14.04% |
▷ Public methods | 895 | 71.83% |
▷ Protected methods | 15 | 1.20% |
▷ Private methods | 336 | 26.97% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 137 | |
▷ Global constants | 112 | 81.75% |
▷ Class constants | 25 | 18.25% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
lib/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
lib/freemius/assets/img/moceansms-order-sms-notification-for-woocommerce.png | 1.78KB | 1.19KB | ▼ 33.33% |
lib/freemius/assets/img/moceanapi-abandoned-carts.png | 4.22KB | 1.98KB | ▼ 53.16% |