Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.44ms] Passed 4 tests
A check of server-side resources used by Cart Product Images Woocommmerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.17 ▲2.50 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.35 ▼1.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.13 ▼3.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.04 ▼9.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.00 ▲1.06 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Cart Product Images Woocommmerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.71 ▼0.72 | 1.71 ▼0.08 | 42.98 ▼7.13 |
Dashboard /wp-admin | 2,209 ▲21 | 5.83 ▼0.05 | 103.81 ▲1.17 | 39.66 ▼4.74 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.02 | 33.81 ▼2.54 | 31.22 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,535 ▼6 | 23.14 ▲4.87 | 684.00 ▲74.67 | 46.37 ▼6.42 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.01 | 98.20 ▲1.98 | 43.89 ▼0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/cart-product-images-woocommmerce/public/partials/cpiw-public-display.php
- > /wp-content/plugins/cart-product-images-woocommmerce/admin/partials/cpiw-admin-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-product-images-woocommmerce/admin/views/tabs/hcpiwMethod.php:15
- > PHP Notice
Undefined variable: active_tab in wp-content/plugins/cart-product-images-woocommmerce/admin/views/hcpiwMethods.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-product-images-woocommmerce/admin/views/tabs/hcpiwMethod.php:15
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (overview of the plugin)
- Donate link: Please fix this invalid URI: "12345adnan@gmail.com"
cart-product-images-woocommmerce/cpiw.php 85% from 13 tests
The principal PHP file in "Cart Product Images Woocommmerce" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cart-product-images-woocommmerce.php" instead of "cpiw.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin275 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 144 | 545 | 269 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected