Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.04ms] Passed 4 tests
An overview of server-side resources used by Comparis - Price comparison system (WooCommerce)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.01 ▼1.93 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.55 ▼4.52 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.60 ▲2.86 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.89 ▼4.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 43.43 ▲6.92 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Comparis - Price comparison system (WooCommerce)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.63 ▼0.77 | 1.95 ▲0.29 | 38.93 ▼1.60 |
Dashboard /wp-admin | 2,212 ▲27 | 5.83 ▲0.97 | 100.62 ▼8.30 | 41.77 ▼1.20 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.97 ▼0.03 | 40.84 ▲4.15 | 36.68 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 17.58 ▼5.50 | 692.70 ▲56.90 | 78.13 ▲18.07 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▼0.00 | 92.79 ▼12.39 | 42.49 ▼1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/taxonomy-brands.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/taxonomy-brand.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/compare-single-product.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/taxonomy-product-sub-categories.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comparis-price-comparison-system-woocommerce/includes/ucp-functions.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/taxonomy-product-categories.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/archive-product.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/comparis-price-comparison-system-woocommerce/templates/taxonomy-product_cat.php:11
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
comparis-price-comparison-system-woocommerce/comparis-plugin.php 85% from 13 tests
This is the main PHP file of "Comparis - Price comparison system (WooCommerce)" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("comparis-price-comparison-system-woocommerce.php" instead of "comparis-plugin.php")
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
There were no executable files found in this plugin15,324 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 432 | 434 | 5,305 |
CSS | 8 | 21 | 168 | 5,209 |
PHP | 60 | 1,088 | 1,643 | 3,966 |
SVG | 1 | 0 | 0 | 520 |
PO File | 1 | 92 | 122 | 223 |
Markdown | 1 | 36 | 0 | 86 |
JSON | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 10 | 6.17% |
▷ Public methods | 155 | 95.68% |
▷ Protected methods | 3 | 1.85% |
▷ Private methods | 4 | 2.47% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/marker.png | 3.31KB | 1.91KB | ▼ 42.17% |
includes/vendor/cuztom/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
includes/vendor/cuztom/assets/images/jquery-ui/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/vendor/cuztom/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/vendor/cuztom/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |