Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.81ms] Passed 4 tests
Server-side resources used by Download Count for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.87 ▲2.72 |
Dashboard /wp-admin | 3.44 ▲0.13 | 49.58 ▲4.36 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 44.28 ▼3.58 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.51 ▼6.08 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.69 ▲3.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Download Count for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.36 ▼0.20 | 1.83 ▲0.16 | 43.37 ▲0.18 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.00 | 94.67 ▲7.68 | 44.26 ▲4.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 35.67 ▲1.30 | 33.41 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.40 ▼0.12 | 699.65 ▼5.33 | 59.91 ▲4.90 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.05 | 94.86 ▼8.75 | 43.37 ▼1.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/download-count-for-woocommerce/lib/class-tt-downloadcountwoo-list-table.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/download-count-for-woocommerce/lib/class-downloadcountwoo.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/download-count-for-woocommerce/lib/class-downloadcountwoo.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/download-count-for-woocommerce/lib/class-downloadcountwooadmin.php:36
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-count-for-woocommerce/lib/class-tt-downloadcountwoo-list-table.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/download-count-for-woocommerce/lib/class-tt-downloadcountwoo-list-table.php on line 26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: download, product, woocommerce, count
download-count-for-woocommerce/downloadcountwoo.php 85% from 13 tests
The main PHP file in "Download Count for WooCommerce" ver. 1.18 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("download-count-for-woocommerce.php" instead of "downloadcountwoo.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "3.0")
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
Success! There were no dangerous files found in this plugin667 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 137 | 366 | 667 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin