Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.68ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Classement
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.78 ▼3.02 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.69 ▼13.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.24 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.30 ▲1.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.54 ▲0.60 |
Server storage [IO: ▲7.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 279 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Classement
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.25 ▼0.17 | 1.78 ▲0.15 | 43.15 ▼1.02 |
Dashboard /wp-admin | 2,192 ▲18 | 5.52 ▼0.05 | 86.64 ▼14.25 | 38.79 ▼2.38 |
Posts /wp-admin/edit.php | 2,082 ▼15 | 2.02 ▲0.03 | 35.25 ▲1.41 | 33.12 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.29 ▼4.93 | 616.12 ▼156.88 | 66.61 ▲6.03 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▲0.03 | 97.69 ▲1.89 | 43.12 ▲1.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-classement/includes/logo.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-classement/includes/nav-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-classement/inc/admin/search/class-woocommerce-classement-admin-search.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: woocommerce statistics
woo-classement/woocommerce-classement.php 92% from 13 tests
The entry point to "Woocommerce Classement" version 3.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-classement.php" instead of "woocommerce-classement.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin59,122 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 23 | 1,887 | 455 | 22,797 |
PHP | 75 | 2,209 | 1,158 | 11,527 |
JavaScript | 43 | 1,703 | 2,022 | 7,838 |
LESS | 14 | 26 | 39 | 6,503 |
SVG | 4 | 0 | 3 | 3,536 |
PO File | 4 | 1,078 | 1,579 | 2,811 |
JSON | 1 | 0 | 0 | 2,502 |
Sass | 13 | 26 | 24 | 1,352 |
HTML | 3 | 12 | 0 | 256 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 1 | 2.44% |
▷ Private methods | 2 | 4.88% |
Functions | 310 | |
▷ Named functions | 309 | 99.68% |
▷ Anonymous functions | 1 | 0.32% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/assets/datatables/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
img/19.png | 49.92KB | 17.49KB | ▼ 64.96% |
framework/assets/datatables/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
framework/assets/datatables/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
framework/assets/datatables/images/forward_enabled_hover.png | 0.43KB | 0.58KB | 0.00% |