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: ▲0.15MB] [CPU: ▼3.93ms] Passed 4 tests
Analyzing server-side resources used by WPB Show Product Sales Number for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.81 ▼7.28 |
Dashboard /wp-admin | 3.52 ▲0.22 | 52.35 ▲0.89 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 57.16 ▲3.93 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 89.89 ▼13.27 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.18 ▲5.47 |
WooCommerce Show Sales /wp-admin/options-general.php?page=wpb-woocommerce-show-sales-numbers | 3.36 | 38.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
general_settings |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
style_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPB Show Product Sales Number for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.85 ▲0.48 | 1.71 ▲0.06 | 39.93 ▼4.85 |
Dashboard /wp-admin | 2,356 ▲176 | 6.35 ▲0.71 | 119.22 ▲29.28 | 43.17 ▼3.21 |
Posts /wp-admin/edit.php | 2,284 ▲187 | 3.58 ▲1.57 | 57.20 ▲18.50 | 36.10 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.29 ▲0.01 | 646.76 ▼23.30 | 36.57 ▼13.40 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.29 ▲0.09 | 79.88 ▼37.42 | 46.13 ▼2.54 |
WooCommerce Show Sales /wp-admin/options-general.php?page=wpb-woocommerce-show-sales-numbers | 1,312 | 3.36 | 61.21 | 27.18 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- style_settings
- general_settings
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpb-woocommerce-show-sales-numbers/inc/wpb-scripts.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: show sales, wpbean, woocommerce, total sales, wpb show product sales number for woocommerce...
wpb-woocommerce-show-sales-numbers/main.php 85% from 13 tests
"WPB Show Product Sales Number for WooCommerce" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpb-woocommerce-show-sales-numbers.php" instead of "main.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected582 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 192 | 232 | 569 |
CSS | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin