Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼159.08ms] Passed 4 tests
An overview of server-side resources used by Compare Products for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.44 ▲13.60 |
Dashboard /wp-admin | 3.07 ▲0.02 | 42.98 ▼11.34 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 40.79 ▼3.59 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.34 ▼616.80 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.16 ▼4.58 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Compare Products for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.92 ▲0.39 | 9.44 ▼2.10 | 46.35 ▲0.61 |
Dashboard /wp-admin | 2,967 ▲34 | 5.98 ▼0.15 | 136.98 ▼16.91 | 106.70 ▼10.72 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 67.40 ▲5.70 | 98.99 ▲9.68 |
Add New Post /wp-admin/post-new.php | 1,615 ▼57 | 21.91 ▲3.06 | 261.11 ▼106.65 | 101.85 ▼10.12 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 149.48 ▲7.74 | 123.81 ▼5.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: compare, woocommerce, compare products, woo commerce
compare-products-for-woocommerce/compare-products-for-woocommerce.php Passed 13 tests
The primary PHP file in "Compare Products for WooCommerce" version 2.1.0 is used by WordPress to initiate all plugin functionality
76 characters long description:
Let your users know which products interest them the most by comparing them.
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
Everything looks great! No dangerous files found in this plugin6,202 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 18 | 42 | 3,899 |
PHP | 16 | 216 | 672 | 1,547 |
CSS | 4 | 22 | 33 | 412 |
PO File | 1 | 89 | 123 | 197 |
Sass | 4 | 22 | 0 | 147 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 62 | |
▷ Static methods | 16 | 25.81% |
▷ Public methods | 60 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.23% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin