Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.66ms] Passed 4 tests
Server-side resources used by SIP Cookie Check for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.93 ▼1.39 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.31 ▼17.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.02 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.75 ▼6.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 29.66 ▼7.54 |
Cookie Check /wp-admin/admin.php?page=sip-cookie-check-settings | 3.32 | 33.63 |
ShopitPress Extras /wp-admin/admin.php?page=sip-extras | 3.27 | 31.48 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
sip_version_value |
widget_recent-posts |
sip_ccwc_message_editor |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SIP Cookie Check for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲173 | 13.47 ▼1.06 | 7.47 ▲5.90 | 40.01 ▲1.42 |
Dashboard /wp-admin | 2,247 ▲76 | 5.63 ▲0.05 | 93.77 ▲8.83 | 40.37 ▲2.49 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.05 ▲0.03 | 40.55 ▲4.68 | 35.58 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 22.87 ▼0.30 | 578.96 ▼69.99 | 54.90 ▼1.69 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.27 ▲0.06 | 95.75 ▼17.26 | 41.00 ▼6.01 |
Cookie Check /wp-admin/admin.php?page=sip-cookie-check-settings | 1,637 | 6.72 | 132.83 | 34.83 |
ShopitPress Extras /wp-admin/admin.php?page=sip-extras | 945 | 2.05 | 24.94 | 24.01 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- sip_version_value
- sip_ccwc_message_editor
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sip-cookie-check-settings
- > Notice in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/affiliate.php+11
Trying to access array offset on value of type bool
SRP 50% 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
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant SIP_CCWC_PLUGIN_VERSION - assumed 'SIP_CCWC_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/plugin.php on line 7
- > PHP Warning
Use of undefined constant SIP_WPGUMBY_THEME - assumed 'SIP_WPGUMBY_THEME' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/themes.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/themes.php:9
- > PHP Warning
Use of undefined constant SIP_SPWC_PLUGIN - assumed 'SIP_SPWC_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/plugin.php on line 8
- > PHP Warning
Use of undefined constant SIP_CCWC_PLUGIN_VERSION - assumed 'SIP_CCWC_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/themes.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/affiliate.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/help.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sip-cookie-check-woocommerce/includes/sip-cookie-check-woocommerce-functions.php:3
- > PHP Warning
Use of undefined constant SIP_CCWC_URL - assumed 'SIP_CCWC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/plugin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sip-cookie-check-woocommerce/admin/ui/plugin.php:9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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:
- Requires at least: Version not formatted correctly
sip-cookie-check-woocommerce/sip-cookie-check-woocommerce.php 85% from 13 tests
The main PHP script in "SIP Cookie Check for WooCommerce" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected773 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 99 | 140 | 416 |
CSS | 3 | 40 | 11 | 322 |
JavaScript | 1 | 7 | 3 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/icon-front-end-bundler.png | 8.23KB | 8.70KB | 0.00% |
admin/assets/images/icon-cookie-check.png | 21.19KB | 8.71KB | ▼ 58.89% |
admin/assets/images/icon-wpgumby.png | 32.42KB | 34.75KB | 0.00% |
admin/assets/images/icon-social-proof.png | 8.71KB | 9.18KB | 0.00% |
admin/assets/images/icon-reviews-shortcode.png | 7.81KB | 8.36KB | 0.00% |