Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼5.00ms] Passed 4 tests
Server-side resources used by My Wp Brand – Hide menu & Hide Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.25 ▲3.20 |
Dashboard /wp-admin | 3.58 ▲0.23 | 46.86 ▼12.30 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 47.28 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 79.96 ▼12.53 |
Media Library /wp-admin/upload.php | 3.52 ▲0.28 | 38.30 ▲5.95 |
MY WP Brand /wp-admin/options-general.php?page=mwb | 3.55 | 35.25 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
hide_menu_bh_plugin |
can_compress_scripts |
menu_order_bh_plugin |
widget_theysaidso_widget |
hide_top_menu_bh_plugin |
hide_sub_menu_bh_plugin |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by My Wp Brand – Hide menu & Hide Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲22 | 14.57 ▼0.17 | 1.78 ▲0.15 | 43.24 ▲6.06 |
Dashboard /wp-admin | 2,189 ▲18 | 5.56 ▲0.03 | 86.30 ▼0.12 | 36.15 ▼5.36 |
Posts /wp-admin/edit.php | 2,094 ▼3 | 2.03 ▲0.02 | 34.97 ▼2.02 | 30.27 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,521 ▼5 | 23.13 ▼0.01 | 674.50 ▼11.37 | 54.17 ▼9.60 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.19 ▼0.04 | 94.88 ▼1.76 | 37.86 ▼9.53 |
MY WP Brand /wp-admin/options-general.php?page=mwb | 3,527 | 1.66 | 27.70 | 86.53 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-wp-brand/mwb-side-menu.php:533
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in my-wp-brand/assets to your readme.txt
my-wp-brand/mwb.php 92% from 13 tests
The main PHP file in "My Wp Brand – Hide menu & Hide Plugin" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-wp-brand.php" instead of "mwb.php")
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
No dangerous file extensions were detected1,188 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 252 | 267 | 790 |
CSS | 1 | 59 | 1 | 321 |
JavaScript | 1 | 18 | 22 | 77 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin