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.00MB] [CPU: ▼8.22ms] Passed 4 tests
This is a short check of server-side resources used by Craftwork Utilities for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.32 ▼4.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.58 ▼7.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.40 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.38 ▼22.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.68 ▲2.97 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Craftwork Utilities for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.27 ▼0.34 | 1.79 ▼0.14 | 40.71 ▼4.47 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.03 | 93.30 ▼15.69 | 38.13 ▼7.54 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.05 | 39.60 ▼0.89 | 35.10 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.61 ▲0.53 | 678.55 ▲72.20 | 52.98 ▼3.55 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.04 | 94.82 ▼13.95 | 42.83 ▼1.95 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant CWUT_DIR - assumed 'CWUT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/craftwork-utilities-for-woocommerce/includes/class-cwut-core.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/craftwork-utilities-for-woocommerce/includes/class-cwut-settings-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/craftwork-utilities-for-woocommerce/craftwork-wc-utilities.php:15
- > PHP Fatal error
require(): Failed opening required 'CWUT_DIRincludes/class-cwut-variation.php' (include_path='.:/usr/share/php') in wp-content/plugins/craftwork-utilities-for-woocommerce/includes/class-cwut-core.php on line 6
- > PHP Warning
require(CWUT_DIRincludes/class-cwut-variation.php): failed to open stream: No such file or directory in wp-content/plugins/craftwork-utilities-for-woocommerce/includes/class-cwut-core.php on line 6
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: woocommerce, enhancement
craftwork-utilities-for-woocommerce/craftwork-wc-utilities.php 92% from 13 tests
The primary PHP file in "Craftwork Utilities for Woocommerce" version 1.3.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("craftwork-utilities-for-woocommerce.php" instead of "craftwork-wc-utilities.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,345 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 216 | 116 | 1,058 |
PO File | 1 | 94 | 104 | 247 |
CSS | 3 | 4 | 0 | 28 |
JavaScript | 1 | 4 | 1 | 12 |
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.45 |
Average class complexity | 30.25 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 31 | 83.78% |
▷ Public methods | 33 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin