Benchmarks
Plugin footprint 65% 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.03MB] [CPU: ▼4.75ms] Passed 4 tests
An overview of server-side resources used by Cool Category Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.13 ▼3.83 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.81 ▼3.20 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.43 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.77 ▼13.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 47.85 ▲11.18 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cssVariables |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cool Category Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.29 ▼1.14 | 5.26 ▲3.38 | 37.98 ▼2.30 |
Dashboard /wp-admin | 2,216 ▲31 | 5.80 ▼0.07 | 101.03 ▼10.95 | 43.25 ▲0.54 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.06 | 39.30 ▼0.75 | 35.17 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 17.94 ▼0.43 | 663.39 ▲32.87 | 50.96 ▼5.24 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.21 ▲0.04 | 96.77 ▼6.17 | 42.03 ▼2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_cssVariables
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/cool-category-menu/includes/functions.php
- > /wp-content/plugins/cool-category-menu/includes/style.php
- > /wp-content/plugins/cool-category-menu/includes/cool-category-menu-page.php
- > /wp-content/plugins/cool-category-menu/index.php
- > /wp-content/plugins/cool-category-menu/includes/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
2 plugin tags: menu, category
cool-category-menu/index.php 92% from 13 tests
The main PHP script in "Cool Category Menu" version 1.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cool-category-menu.php" instead of "index.php")
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
No dangerous file extensions were detected1,053 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 21 | 159 | 763 |
PHP | 5 | 106 | 44 | 290 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin