Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.45ms] Passed 4 tests
This is a short check of server-side resources used by Hide WP Customizer Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 30.84 ▼5.69 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.80 ▼0.39 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 41.35 ▼6.78 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.55 ▼556.92 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.38 ▲5.29 |
Customizer /wp-admin/options-general.php?page=pp-customizer-customizer | 4.86 | 84.27 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pp-customizer-customizer-version |
Browser metrics Passed 4 tests
A check of browser resources used by Hide WP Customizer Options
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.84 ▲0.38 | 9.96 ▼1.67 | 44.67 ▼5.09 |
Dashboard /wp-admin | 2,972 ▲35 | 6.00 ▲0.08 | 145.31 ▼1.91 | 110.08 ▼4.37 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.02 | 67.33 ▼0.46 | 88.15 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,678 ▲178 | 18.80 ▲0.04 | 408.13 ▼1.53 | 106.51 ▼5.55 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▼0.02 | 149.99 ▼9.70 | 115.03 ▼0.30 |
Customizer /wp-admin/options-general.php?page=pp-customizer-customizer | 1,174 | 2.21 | 55.70 | 77.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- pp-customizer-customizer-version
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pp-customizer-customizer
- > Warning in wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php+39
Creating default object from empty value
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 76% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: The plugin tags were not defined
- Screenshots: Screenshot #1 (Admin screen) image not found
- Donate link: Please fix this invalid url: ""
hide-wp-customizer-options/customizer-customizer.php 69% from 13 tests
The entry point to "Hide WP Customizer Options" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages/")
- Requires at least: Required version does not match the one declared in readme.txt ("4.1.0" instead of "4.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hide-wp-customizer-options.php" instead of "customizer-customizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin771 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 202 | 643 | 771 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 22.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 3 | 60.00% |
Methods | 59 | |
▷ Static methods | 3 | 5.08% |
▷ Public methods | 45 | 76.27% |
▷ Protected methods | 8 | 13.56% |
▷ Private methods | 6 | 10.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 115.07KB | 38.83KB | ▼ 66.26% |