Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.42MB] [CPU: ▼46.82ms] Passed 4 tests
An overview of server-side resources used by eCommerce Addon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.95 | 7.25 ▼34.26 |
Dashboard /wp-admin | 2.61 ▼0.70 | 11.56 ▼36.90 |
Posts /wp-admin/edit.php | 2.61 ▼0.75 | 14.80 ▼31.99 |
Add New Post /wp-admin/post-new.php | 2.61 ▼3.28 | 10.65 ▼84.11 |
Media Library /wp-admin/upload.php | 2.61 ▼0.62 | 11.24 ▼21.40 |
eCommerce Addon /wp-admin/admin.php?page=naeca_admin_page | 2.61 | 12.15 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 2.61 | 11.13 |
Enable & Disable /wp-admin/admin.php?page=naeca_admin_sub_page | 2.61 | 12.33 |
Server storage [IO: ▲9.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 337 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
fs_active_plugins |
widget_recent-posts |
fs_debug_mode |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
fs_accounts |
can_compress_scripts |
Browser metrics Passed 4 tests
eCommerce Addon: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,054 ▲293 | 14.21 ▼0.08 | 27.44 ▲25.75 | 32.04 ▼16.59 |
Dashboard /wp-admin | 2,274 ▲94 | 5.63 ▼0.03 | 90.81 ▼4.23 | 44.68 ▲0.60 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 2.13 ▲0.18 | 39.13 ▲1.48 | 40.67 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,578 ▲50 | 23.27 ▲0.22 | 699.29 ▲27.42 | 54.79 ▼8.84 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.18 ▼0.03 | 101.04 ▼2.97 | 47.10 ▼0.34 |
eCommerce Addon /wp-admin/admin.php?page=naeca_admin_page | 997 | 1.65 | 30.74 | 59.03 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,110 | 1.66 | 25.24 | 30.36 |
Enable & Disable /wp-admin/admin.php?page=naeca_admin_sub_page | 1,295 | 2.05 | 25.79 | 29.57 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/ecommerce-addon/elementor/em-setup.php+65
Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- fs_debug_mode
- widget_theysaidso_widget
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=naeca_admin_sub_page
- > Warning in wp-content/plugins/ecommerce-addon/elementor/em-setup.php+65
Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecommerce-addon/ecommerce-addon.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-subscribe.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-products.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-pricing.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-counter.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-circle-progress.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-products-slider.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/ecommerce-addon/elementor/widgets/basic/nabasic-testimonials.php:9
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ecommerce-addon/ecommerce-addon.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in ecommerce-addon/assets to your readme.txt
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ecommerce-addon/ecommerce-addon.php 92% from 13 tests
The main PHP script in "eCommerce Addon" version 1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin89,179 lines of code in 240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 8,729 | 18,009 | 48,276 |
CSS | 40 | 2,521 | 235 | 16,029 |
JavaScript | 36 | 3,561 | 4,042 | 13,987 |
SVG | 15 | 8 | 13 | 10,884 |
JSON | 3 | 0 | 0 | 3 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 74.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 2 | 2.82% |
▷ Concrete classes | 69 | 97.18% |
▷ Final classes | 0 | 0.00% |
Methods | 1,395 | |
▷ Static methods | 205 | 14.70% |
▷ Public methods | 966 | 69.25% |
▷ Protected methods | 57 | 4.09% |
▷ Private methods | 372 | 26.67% |
Functions | 152 | |
▷ Named functions | 150 | 98.68% |
▷ Anonymous functions | 2 | 1.32% |
Constants | 147 | |
▷ Global constants | 98 | 66.67% |
▷ Class constants | 49 | 33.33% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/product-bg.png | 0.95KB | 0.11KB | ▼ 88.89% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/ecommerce-addon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |