Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼299.34ms] Passed 4 tests
Analyzing server-side resources used by Customizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 62.95 ▲3.80 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.51 ▼43.84 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 69.46 ▲29.35 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 92.13 ▼1,160.99 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 28.24 ▲3.67 |
Customizer /wp-admin/options-general.php?page=customizer_options_panel | 3.30 | 24.73 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 4.61 | 46.15 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Customizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲106 | 16.46 ▲1.16 | 7.79 ▲1.67 | 3.05 ▲0.79 |
Dashboard /wp-admin | 2,911 ▲53 | 6.38 ▲0.08 | 124.42 ▼14.28 | 157.06 ▼14.33 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.31 ▲0.07 | 67.64 ▼39.00 | 155.65 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,674 ▲8 | 16.58 ▼4.10 | 443.40 ▼45.63 | 194.44 ▲17.11 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.60 ▲0.07 | 149.97 ▲8.54 | 208.42 ▲17.25 |
Customizer /wp-admin/options-general.php?page=customizer_options_panel | 1,111 | 2.65 | 57.04 | 121.01 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7,303 | 20.02 | 542.91 | 169.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 2 options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=customizer_options_panel
- > Notice in wp-content/plugins/customizer/customizer_options.php+109
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > POST request to /wp-content/plugins/customizer/customizer_ajax.php
- > Warning in wp-content/plugins/customizer/customizer_ajax.php+171
Invalid argument supplied for foreach()
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/customizer/customizer.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/customizer/customizer_options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/customizer/customizer_shortcodes.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=customizer_options_panel
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/customizer/customizer.js?ver=20120520:351:37)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=customizer_options_panel
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Panel created with Customizer), #2 (Customizer allows adding panels in front-end editor)
customizer/customizer.php 92% from 13 tests
The main PHP script in "Customizer" version 0.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
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
Good job! No executable or dangerous file extensions detected1,896 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 225 | 203 | 1,333 |
PHP | 5 | 107 | 89 | 478 |
CSS | 1 | 31 | 14 | 85 |
PHP code Passed 2 tests
A short review of 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.60 |
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 | 24 | |
▷ Named functions | 24 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.34MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 135.00KB | 85.94KB | ▼ 36.34% |
header.png | 58.26KB | 61.52KB | 0.00% |
bg.png | 4.53KB | 4.60KB | 0.00% |
screenshot-1.png | 149.67KB | 66.18KB | ▼ 55.78% |