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.59MB] [CPU: ▼2.28ms] Passed 4 tests
A check of server-side resources used by WPC Smart Compare for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 36.89 ▼0.16 |
Dashboard /wp-admin | 3.89 ▲0.59 | 45.31 ▼1.01 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 47.47 ▲1.00 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.61 | 80.60 ▼8.94 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 40.66 ▲7.33 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.78 | 31.99 |
About /wp-admin/admin.php?page=wpclever | 3.78 | 34.45 |
Server storage [IO: ▲0.85MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPC Smart Compare for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.28 ▼0.08 | 1.66 ▲0.04 | 40.36 ▼4.60 |
Dashboard /wp-admin | 2,272 ▲95 | 5.72 ▲0.15 | 80.49 ▼8.50 | 89.56 ▲51.45 |
Posts /wp-admin/edit.php | 2,178 ▲75 | 1.98 ▼0.03 | 35.67 ▼3.11 | 35.41 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,596 ▲68 | 23.17 ▲0.07 | 737.26 ▲114.50 | 54.18 ▲5.26 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.26 ▲0.02 | 95.81 ▲0.00 | 75.09 ▲33.61 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,744 | 2.13 | 33.21 | 53.49 |
About /wp-admin/admin.php?page=wpclever | 1,399 | 2.14 | 30.81 | 37.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in woo-smart-compare/assets to your readme.txt
woo-smart-compare/wpc-smart-compare.php 92% from 13 tests
The principal PHP file in "WPC Smart Compare for WooCommerce" v. 6.1.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-smart-compare.php" instead of "wpc-smart-compare.php")
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
No dangerous file extensions were detected13,175 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 934 | 441 | 5,384 |
PHP | 5 | 392 | 73 | 2,925 |
CSS | 13 | 520 | 75 | 2,856 |
PO File | 5 | 592 | 656 | 1,500 |
SVG | 17 | 0 | 2 | 359 |
Sass | 1 | 27 | 0 | 151 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 100.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 354.00 |
Average method complexity | 6.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 13 | 18.57% |
▷ Public methods | 70 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 2.79KB | 1.61KB | ▼ 42.29% |