Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼2.54ms] Passed 4 tests
Analyzing server-side resources used by Customizer UI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 43.31 ▲2.31 |
Dashboard /wp-admin | 3.64 ▲0.33 | 47.45 ▼0.16 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.99 ▲0.26 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 85.06 ▼12.58 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.46 ▲7.92 |
Section Manager /wp-admin/admin.php?page=wpcui-section-manager | 3.46 | 31.83 |
Settings /wp-admin/admin.php?page=wpcui-settings | 3.46 | 33.58 |
Customizer UI /wp-admin/admin.php?page=wpcui | 3.48 | 30.93 |
Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
wpcui_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Customizer UI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.20 ▼1.39 | 1.69 ▼0.23 | 40.47 ▼1.81 |
Dashboard /wp-admin | 2,244 ▲53 | 5.85 ▼0.05 | 99.83 ▼1.32 | 40.79 ▼0.76 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.00 ▼0.04 | 34.15 ▼4.31 | 33.02 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 21.34 ▲3.62 | 588.82 ▼36.10 | 49.14 ▼10.82 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.25 ▼0.05 | 98.20 ▲4.05 | 43.81 ▲1.75 |
Section Manager /wp-admin/admin.php?page=wpcui-section-manager | 967 | 2.06 | 24.32 | 27.16 |
Settings /wp-admin/admin.php?page=wpcui-settings | 819 | 2.06 | 30.69 | 29.64 |
Customizer UI /wp-admin/admin.php?page=wpcui | 818 | 2.04 | 23.66 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- wpcui_settings
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wpcui-section-manager
- > Notice in wp-content/plugins/customizer-user-interface/inc/Data/DataService.php+175
Undefined index: core_sections
SRP 0% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/customizer-user-interface/wpcui.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Pages/SectionManager.php:14
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Base/Activate.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/customizer-user-interface/templates/admin.php:12
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Base/SettingsLinks.php:9
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Forms/AdminPageForms.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/customizer-user-interface/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Pages/Settings.php:15
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Data\\DataService' not found in wp-content/plugins/customizer-user-interface/templates/section-manager.php:6
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Base/Deactivate.php:9
- > PHP Fatal error
Uncaught Error: Class 'PerkoCustomizerUI\\Base\\BaseController' not found in wp-content/plugins/customizer-user-interface/inc/Pages/Admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: customizer, ui, user interface
customizer-user-interface/wpcui.php 85% from 13 tests
Analyzing the main PHP file in "Customizer UI" version 1.1.0
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("customizer-user-interface.php" instead of "wpcui.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,949 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 468 | 616 | 1,726 |
CSS | 1 | 24 | 0 | 99 |
JSON | 3 | 0 | 0 | 58 |
JavaScript | 1 | 13 | 9 | 35 |
Markdown | 1 | 16 | 0 | 23 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 2 | 6.06% |
▷ Concrete classes | 31 | 93.94% |
▷ Final classes | 1 | 3.23% |
Methods | 125 | |
▷ Static methods | 51 | 40.80% |
▷ Public methods | 100 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 20.00% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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
5 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 11.10KB | 4.70KB | ▼ 57.70% |
assets/icon-500x500.png | 56.97KB | 20.38KB | ▼ 64.23% |
assets/icon-128x128.png | 23.01KB | 7.69KB | ▼ 66.59% |
assets/screenshot-1.PNG | 47.27KB | 21.02KB | ▼ 55.53% |
assets/icon-256x256.png | 61.06KB | 19.04KB | ▼ 68.81% |