Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼11.64ms] Passed 4 tests
This is a short check of server-side resources used by WCBoost - Products Compare
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.07 ▼2.61 |
Dashboard /wp-admin | 3.34 ▼0.00 | 42.65 ▼21.50 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.09 ▼4.83 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.58 ▼17.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.79 ▼1.91 |
Server storage [IO: ▲0.12MB] [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: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WCBoost - Products Compare
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.54 ▼1.11 | 1.74 ▼0.28 | 40.91 ▼4.70 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.02 | 97.90 ▼5.10 | 40.30 ▼6.63 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.11 ▲0.09 | 39.17 ▼2.50 | 34.63 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.44 ▼5.54 | 674.89 ▲18.88 | 56.59 ▼2.47 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.01 | 95.76 ▼10.50 | 41.02 ▼1.34 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function WCBoost\\ProductsCompare\\Admin\\add_filter() in wp-content/plugins/wcboost-products-compare/includes/admin/settings.php:13
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce compare, product compare, woocommerce, product, compare
wcboost-products-compare/wcboost-products-compare.php 92% from 13 tests
Analyzing the main PHP file in "WCBoost - Products Compare" version 1.0.2
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 273 characters long)
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected2,189 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 352 | 645 | 1,380 |
JavaScript | 4 | 145 | 54 | 493 |
Sass | 1 | 61 | 2 | 308 |
XML | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 89 | |
▷ Static methods | 32 | 35.96% |
▷ Public methods | 78 | 87.64% |
▷ Protected methods | 5 | 5.62% |
▷ Private methods | 6 | 6.74% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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