Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼169.66ms] Passed 4 tests
Server-side resources used by Customize Editor Control
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.17 ▲0.45 | 36.89 ▲15.14 |
Dashboard /wp-admin | 3.41 ▲0.36 | 45.55 ▲5.80 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 44.73 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.27 | 88.31 ▼686.94 |
Media Library /wp-admin/upload.php | 3.29 ▲0.29 | 34.22 ▲0.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Customize Editor Control: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.91 ▲0.33 | 7.88 ▲0.06 | 49.35 ▼0.29 |
Dashboard /wp-admin | 2,973 ▲42 | 5.89 ▼0.21 | 144.03 ▼1.04 | 107.51 ▼3.78 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.01 | 68.18 ▼0.23 | 94.71 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.88 ▲0.08 | 369.64 ▲4.95 | 99.78 ▼4.64 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.02 | 146.64 ▼14.56 | 120.65 ▼3.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/customize-editor-control/inc/class-wp-customize-editor-control.php on line 9
- > PHP Warning
include(): Failed opening 'ABSPATHWPINC/class-wp-customize-control.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/customize-editor-control/inc/class-wp-customize-editor-control.php on line 9
- > PHP Warning
include(ABSPATHWPINC/class-wp-customize-control.php): failed to open stream: No such file or directory in wp-content/plugins/customize-editor-control/inc/class-wp-customize-editor-control.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/customize-editor-control/inc/class-wp-customize-editor-control.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/customize-editor-control/inc/class-wp-customize-editor-control.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (WordPress editor control in Customizer)
customize-editor-control/customize-editor-control.php 92% from 13 tests
The principal PHP file in "Customize Editor Control" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin85 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 61 | 38 |
JavaScript | 1 | 9 | 0 | 27 |
Markdown | 1 | 4 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 44.80KB | 16.93KB | ▼ 62.20% |