Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.27MB] [CPU: ▼4.74ms] Passed 4 tests
Server-side resources used by COMPE - WooCommerce Compare Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 38.35 ▼8.40 |
Dashboard /wp-admin | 3.58 ▲0.27 | 47.24 ▼3.43 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 50.76 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 98.96 ▼8.62 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.83 ▲2.61 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
wpc_plugin_page_id |
Browser metrics Passed 4 tests
This is an overview of browser requirements for COMPE - WooCommerce Compare Products
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.25 ▼1.14 | 4.70 ▲2.39 | 41.19 ▼11.49 |
Dashboard /wp-admin | 2,218 ▲27 | 4.85 ▼1.05 | 108.95 ▲3.94 | 42.88 ▼4.74 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▲0.05 | 41.49 ▲2.24 | 42.59 ▲7.24 |
Add New Post /wp-admin/post-new.php | 1,556 ▲36 | 18.55 ▼4.55 | 604.03 ▲5.75 | 59.57 ▲8.64 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.04 | 97.37 ▼3.34 | 41.55 ▼2.81 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- wpc_plugin_page_id
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: woocommerce compare products plugin, product comparison plugin wordpress, wordpress, woocommerce compare products, woocommerce...
compe-woo-compare-products/compe-woo-compare-products.php Passed 13 tests
The main file in "COMPE - WooCommerce Compare Products" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
The effective way to compare product for WooCommerce
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 detected19,342 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,369 | 526 | 7,726 |
PHP | 11 | 416 | 319 | 5,913 |
CSS | 42 | 550 | 415 | 3,558 |
SVG | 8 | 16 | 1 | 1,114 |
HTML | 1 | 86 | 0 | 549 |
PO File | 1 | 164 | 227 | 365 |
Sass | 1 | 4 | 0 | 117 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 1 | 0.81% |
▷ Public methods | 112 | 91.06% |
▷ Protected methods | 8 | 6.50% |
▷ Private methods | 3 | 2.44% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 11 | |
▷ Global constants | 11 | 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
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/previous.png | 9.39KB | 9.37KB | 0.21% |
images/setting.png | 17.40KB | 12.11KB | ▼ 30.41% |
images/next.png | 9.52KB | 9.50KB | 0.19% |