Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▲5.81ms] Passed 4 tests
Server-side resources used by CP Image Store with Slideshow
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 47.32 ▲2.54 |
Dashboard /wp-admin | 3.43 ▲0.13 | 56.87 ▲6.52 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 58.55 ▲13.36 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 94.67 ▲2.19 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 47.71 ▲12.00 |
Categories /wp-admin/edit-tags.php?taxonomy=cpis_category | 3.35 | 42.86 |
Authors /wp-admin/edit-tags.php?taxonomy=cpis_author | 3.35 | 42.95 |
Importing Area /wp-admin/admin.php?page=image-store-menu-import | 3.32 | 38.88 |
Images for Sale /wp-admin/edit.php?post_type=cpis_image | 3.40 | 44.74 |
Store Settings /wp-admin/admin.php?page=image-store-menu-settings | 3.39 | 42.57 |
Color Schemes /wp-admin/edit-tags.php?taxonomy=cpis_color | 3.36 | 44.82 |
Types /wp-admin/edit-tags.php?taxonomy=cpis_type | 3.36 | 43.81 |
Sales Report /wp-admin/admin.php?page=image-store-menu-reports | 3.33 | 41.46 |
Image Store /wp-admin/options-general.php?page=image-store-menu-settings-page | 3.34 | 42.16 |
Server storage [IO: ▲1.18MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_cpis_file |
wp_cpis_purchase |
wp_cpis_image_file |
wp_cpis_image |
New WordPress options |
---|
cpis_options |
theysaidso_admin_options |
installed_cp-image-store |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
cpis_has_been_configured |
widget_cpisproductwidget |
Browser metrics Passed 4 tests
An overview of browser requirements for CP Image Store with Slideshow
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲211 | 13.89 ▼0.88 | 10.05 ▲8.36 | 36.62 ▼10.69 |
Dashboard /wp-admin | 2,238 ▲58 | 5.56 ▼0.12 | 98.20 ▼0.49 | 92.41 ▲45.30 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.30 ▲0.30 | 35.31 ▼1.09 | 34.43 ▼4.04 |
Add New Post /wp-admin/post-new.php | 6,427 ▲4,890 | 27.88 ▲9.78 | 1,024.85 ▲369.42 | 39.01 ▼26.63 |
Media Library /wp-admin/upload.php | 1,458 ▲61 | 4.26 ▲0.07 | 104.86 ▲2.03 | 64.49 ▲18.24 |
Categories /wp-admin/edit-tags.php?taxonomy=cpis_category | 1,332 | 2.12 | 27.36 | 32.11 |
Authors /wp-admin/edit-tags.php?taxonomy=cpis_author | 1,301 | 2.25 | 25.80 | 29.76 |
Importing Area /wp-admin/admin.php?page=image-store-menu-import | 1,054 | 1.99 | 23.34 | 34.59 |
Images for Sale /wp-admin/edit.php?post_type=cpis_image | 1,187 | 1.94 | 31.83 | 30.29 |
Store Settings /wp-admin/admin.php?page=image-store-menu-settings | 973 | 1.81 | 26.16 | 33.61 |
Color Schemes /wp-admin/edit-tags.php?taxonomy=cpis_color | 1,455 | 2.12 | 27.95 | 34.27 |
Types /wp-admin/edit-tags.php?taxonomy=cpis_type | 1,508 | 2.25 | 29.56 | 33.16 |
Sales Report /wp-admin/admin.php?page=image-store-menu-reports | 1,388 | 2.04 | 23.77 | 25.82 |
Image Store /wp-admin/options-general.php?page=image-store-menu-settings-page | 1,983 | 1.82 | 26.54 | 59.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_cpis_image
- wp_cpis_image_file
- wp_cpis_purchase
- wp_cpis_file
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- theysaidso_admin_options
- cpis_has_been_configured
- widget_theysaidso_widget
- widget_cpisproductwidget
- installed_cp-image-store
- cpis_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cp-image-store/includes/ipn.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-image-store/banner.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-image-store/banner.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cp-image-store/includes/submit.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-image-store/addons/affiliateroyale.addon.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cp-image-store/includes/download.php:5
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/cp-image-store/pagebuilders/siteorigin/siteorigin-cpis-product/siteorigin-cpis-product.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cp-image-store/includes/wizard.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/cp-image-store/pagebuilders/siteorigin/siteorigin-cpis/tpl/siteorigin-cpis-shortcode.php:4
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/cp-image-store/pagebuilders/siteorigin/siteorigin-cpis/siteorigin-cpis.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-image-store/includes/image.php:140
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (42 tag instead of maximum 10)
cp-image-store/cp-image-store.php 92% from 13 tests
"CP Image Store with Slideshow" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 240 characters long)
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 plugin6,425 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 683 | 189 | 4,810 |
PO File | 1 | 288 | 295 | 637 |
JavaScript | 6 | 68 | 27 | 634 |
HTML | 1 | 0 | 0 | 178 |
CSS | 5 | 25 | 8 | 158 |
INI | 1 | 0 | 0 | 6 |
SVG | 2 | 0 | 0 | 2 |
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.56 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 39 | 79.59% |
▷ Protected methods | 4 | 8.16% |
▷ Private methods | 6 | 12.24% |
Functions | 77 | |
▷ Named functions | 71 | 92.21% |
▷ Anonymous functions | 6 | 7.79% |
Constants | 18 | |
▷ Global constants | 18 | 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
10 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layouts/01/search_icon.png | 0.39KB | 0.30KB | ▼ 22.44% |
css/arrow_right.png | 0.67KB | 0.73KB | 0.00% |
images/image-store-insert-product.png | 0.22KB | 0.10KB | ▼ 55.56% |
layouts/01/active_btn_bg.png | 0.22KB | 0.21KB | ▼ 4.82% |
css/arrow_left.png | 0.58KB | 0.62KB | 0.00% |