Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼12.23ms] Passed 4 tests
Analyzing server-side resources used by Category Notices for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 37.77 ▼8.95 |
Dashboard /wp-admin | 3.37 ▲0.07 | 42.62 ▼14.33 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.99 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.96 ▼23.84 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.21 ▼1.80 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
category_notices_for_woocommerce |
Browser metrics Passed 4 tests
An overview of browser requirements for Category Notices for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.69 ▲0.05 | 1.65 ▼0.93 | 42.35 ▼3.92 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.03 | 97.98 ▲2.43 | 44.68 ▲0.79 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.03 ▲0.01 | 35.45 ▼4.57 | 32.24 ▼7.85 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.98 ▲0.04 | 684.15 ▲49.06 | 50.06 ▼14.51 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.22 ▲0.04 | 103.18 ▲0.80 | 46.30 ▲1.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- category_notices_for_woocommerce
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: notices, product category notice, woocommerce, category notices, notice...
category-notices-for-woocommerce/category-notices-for-woocommerce.php Passed 13 tests
The main file in "Category Notices for WooCommerce" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Adds a notice to specific WooCommerce categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected349 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 11 | 289 |
CSS | 1 | 8 | 0 | 35 |
JavaScript | 1 | 0 | 1 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin