Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.80ms] Passed 4 tests
A check of server-side resources used by Custom Conditions For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.05 ▼2.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.55 ▼2.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.54 ▼6.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.87 ▼20.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.28 ▲3.03 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Conditions For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.08 | 4.48 ▲2.34 | 40.36 ▼7.75 |
Dashboard /wp-admin | 2,209 ▲18 | 4.87 ▲0.00 | 108.24 ▼6.98 | 43.07 ▲0.63 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.04 | 37.32 ▲1.03 | 34.59 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,397 ▼117 | 17.81 ▲0.29 | 609.03 ▼87.20 | 45.45 ▼10.11 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.06 | 105.09 ▼1.31 | 46.54 ▲0.65 |
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 does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 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
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include(): Failed opening 'CCW_PLUGIN_PATH/admin/api/class-ccw-settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-conditions-for-woocommerce/admin/class-ccw-admin.php on line 14
- > PHP Warning
include(CCW_PLUGIN_PATH/admin/api/class-ccw-settings.php): failed to open stream: No such file or directory in wp-content/plugins/custom-conditions-for-woocommerce/admin/class-ccw-admin.php on line 14
- > PHP Warning
include(CCW_PLUGIN_PATH/admin/api/class-ccw-settings.php): failed to open stream: No such file or directory in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-conditions.php on line 11
- > PHP Warning
Use of undefined constant CCW_PLUGIN_PATH - assumed 'CCW_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-conditions.php on line 12
- > PHP Warning
include(CCW_PLUGIN_PATH/public/class-ccw-public.php): failed to open stream: No such file or directory in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-conditions.php on line 12
- > PHP Warning
include(): Failed opening 'CCW_PLUGIN_PATH/public/class-ccw-public.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-conditions.php on line 12
- > PHP Warning
include(): Failed opening 'CCW_PLUGIN_PATH/admin/api/class-ccw-settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-conditions.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Ccw_Public' not found in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-conditions.php:15
- > PHP Warning
include(): Failed opening 'CCW_PLUGIN_PATH/public/class-ccw-conditions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-conditions-for-woocommerce/public/class-ccw-public.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-conditions-for-woocommerce/admin/api/class-ccw-settings.php:14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
custom-conditions-for-woocommerce/custom-conditions-for-woocommerce.php Passed 13 tests
The main PHP file in "Custom Conditions For WooCommerce" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
109 characters long description:
If you want quickly to show/hide/rename most of the functionalities in WooCommerce, this is the right plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin597 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 127 | 180 | 499 |
PO File | 1 | 39 | 44 | 96 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued 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 | 23.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin