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
Install script ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼28.35ms] Passed 4 tests
An overview of server-side resources used by Hide Product & Post Categories
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.63 | 18.03 ▼21.44 |
Dashboard /wp-admin | 3.26 ▼0.05 | 33.10 ▼15.50 |
Posts /wp-admin/edit.php | 3.19 ▼0.17 | 27.02 ▼17.13 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 31.29 ▼59.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.80 ▼2.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Hide Product & Post Categories: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,477 ▼1,269 | 12.62 ▼2.12 | 0.40 ▼1.34 | 14.51 ▼32.09 |
Dashboard /wp-admin | 1,239 ▼946 | 1.38 ▼4.48 | 12.96 ▼107.74 | 30.88 ▼12.39 |
Posts /wp-admin/edit.php | 32 ▼2,057 | 0.44 ▼1.55 | 0.06 ▼36.84 | 4.02 ▼32.09 |
Add New Post /wp-admin/post-new.php | 45 ▼1,488 | 0.44 ▼23.01 | 0.07 ▼695.99 | 12.39 ▼57.30 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.18 ▼0.07 | 109.80 ▲2.22 | 74.56 ▲30.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hide-category/public/partials/wc-hide-category-public-display.php
- > /wp-content/plugins/hide-category/admin/partials/wc-hide-category-admin-display.php
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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: "zworthkey.com/about-us"
- Plugin Name: You should set the name of your plugin on the first line (
=== hide-category ===
)
hide-category/wc-hide-category.php 85% from 13 tests
"Hide Product & Post Categories" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("hide-category.php" instead of "wc-hide-category.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin308 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 154 | 566 | 302 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 files were detected