Benchmarks
Plugin footprint 82% 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.61MB] [CPU: ▼15.47ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Product Labels Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.85 ▲8.54 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.17 ▼0.63 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.56 ▲4.60 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 34.82 ▼66.06 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.60 ▲0.21 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/woocommerce-product-labels-lite/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/woocommerce-product-labels-lite/modules/css/images/arrow/navigator - _\302\256___.png"
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Product Labels Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,130 ▲395 | 15.70 ▲1.33 | 7.74 ▲5.83 | 41.36 ▼0.41 |
Dashboard /wp-admin | 2,393 ▲202 | 6.83 ▲1.96 | 132.04 ▲27.26 | 42.07 ▲3.74 |
Posts /wp-admin/edit.php | 2,299 ▲207 | 3.71 ▲1.69 | 55.54 ▲18.29 | 35.21 ▲4.37 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 23.12 ▲0.06 | 600.17 ▲0.33 | 32.17 ▼51.06 |
Media Library /wp-admin/upload.php | 1,504 ▲122 | 4.52 ▲0.23 | 86.60 ▼14.14 | 42.62 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-labels-lite/modules/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woocommerce-product-labels-lite/modules/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-labels-lite/modules/meta_box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-labels-lite/modules/scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-labels-lite/modules/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-labels-lite/modules/meta_box.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Contributors: Contributors not specified
woocommerce-product-labels-lite/wp-woo-labels-lite.php 92% from 13 tests
The principal PHP file in "Woocommerce Product Labels Lite" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-product-labels-lite.php" instead of "wp-woo-labels-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected24,175 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 1,338 | 239 | 15,882 |
JavaScript | 10 | 663 | 2,542 | 7,134 |
PHP | 7 | 96 | 11 | 468 |
HTML | 1 | 40 | 0 | 316 |
SVG | 5 | 0 | 0 | 292 |
PO File | 1 | 77 | 124 | 83 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.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
30 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/css/images/arrow/down.png | 0.92KB | 0.77KB | ▼ 16.28% |
modules/css/images/arrow/up_dark.png | 0.69KB | 0.59KB | ▼ 14.85% |
modules/css/images/arrow/vert_large.png | 2.38KB | 1.89KB | ▼ 20.75% |
modules/css/images/arrow/right_dark.png | 0.71KB | 0.60KB | ▼ 14.92% |
modules/inc/assets/css/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |