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.37MB] [CPU: ▼35.04ms] Passed 4 tests
A check of server-side resources used by Neon Product Designer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 20.31 ▼25.10 |
Dashboard /wp-admin | 3.65 ▲0.34 | 29.89 ▼19.20 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 26.92 ▼26.17 |
Add New Post /wp-admin/post-new.php | 3.65 ▼2.24 | 23.17 ▼69.68 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 25.42 ▼12.60 |
Server storage [IO: ▲5.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Neon Product Designer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 14.41 ▲0.44 | 12.28 ▲10.13 | 44.14 ▲3.19 |
Dashboard /wp-admin | 2,259 ▲68 | 5.63 ▼0.18 | 107.93 ▲1.26 | 40.23 ▲0.17 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.66 ▲0.68 | 49.72 ▲7.02 | 36.55 ▼9.95 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.55 ▲0.39 | 642.38 ▼48.93 | 35.70 ▼40.00 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.63 ▲0.27 | 108.92 ▼2.18 | 44.22 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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 items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/neon-product-designer-for-woocommerce/public/partials/neon-product-designer-public-display.php
- > /wp-content/plugins/neon-product-designer-for-woocommerce/admin/partials/neon-product-designer-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: custom neon, neon product maker, neon product designer, neon sign, neon product configurator...
neon-product-designer-for-woocommerce/neon-product-designer.php 85% from 13 tests
Analyzing the main PHP file in "Neon Product Designer" version 2.1.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("neon-product-designer-for-woocommerce.php" instead of "neon-product-designer.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin55,581 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 3,599 | 11,079 | 28,971 |
JSON | 1 | 0 | 0 | 13,694 |
CSS | 15 | 1,571 | 57 | 6,328 |
PHP | 24 | 850 | 1,222 | 5,380 |
SVG | 3 | 1 | 0 | 715 |
PO File | 1 | 210 | 263 | 486 |
Markdown | 2 | 2 | 0 | 7 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 17 | 13.49% |
▷ Public methods | 111 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 11.90% |
Functions | 37 | |
▷ Named functions | 33 | 89.19% |
▷ Anonymous functions | 4 | 10.81% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/npd-dashicon.png | 18.19KB | 2.27KB | ▼ 87.51% |
admin/images/npd-dashicon-2.png | 46.36KB | 22.53KB | ▼ 51.41% |
admin/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |