Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼8.97ms] Passed 4 tests
A check of server-side resources used by WP Customizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.42 ▼1.33 |
Dashboard /wp-admin | 3.22 ▼0.08 | 30.16 ▼18.50 |
Posts /wp-admin/edit.php | 3.28 ▼0.07 | 48.91 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.42 | 76.36 ▼13.35 |
Media Library /wp-admin/upload.php | 3.22 ▼0.00 | 27.57 ▼2.71 |
WP Customizer /wp-admin/options-general.php?page=wp-customizer/includes/class-wp-customizer-admin.php | 3.20 | 28.62 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp_customizer_options |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Customizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲131 | 13.31 ▼1.08 | 1.80 ▼0.18 | 43.77 ▼5.44 |
Dashboard /wp-admin | 2,275 ▲87 | 4.99 ▼0.92 | 111.75 ▼4.45 | 43.54 ▼6.71 |
Posts /wp-admin/edit.php | 2,158 ▲66 | 2.58 ▲0.58 | 46.39 ▲7.25 | 38.23 ▲3.85 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.49 ▼4.85 | 655.77 ▼24.39 | 59.41 ▲10.04 |
Media Library /wp-admin/upload.php | 1,457 ▲72 | 4.56 ▲0.33 | 100.78 ▼3.36 | 46.56 ▲1.84 |
WP Customizer /wp-admin/options-general.php?page=wp-customizer/includes/class-wp-customizer-admin.php | 1,301 | 4.92 | 55.60 | 63.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-customizer/includes/class-wp-customizer-admin.php
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 0% 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 fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-customizer/includes/class-wp-customizer-loader.php
- > /wp-content/plugins/wp-customizer/includes/class-wp-customizer-files.php
- > /wp-content/plugins/wp-customizer/includes/class-wp-customizer-admin.php
- > /wp-content/plugins/wp-customizer/includes/class-wp-customizer-pointers.php
- > /wp-content/plugins/wp-customizer/includes/class-wp-customizer-upgrade.php
- > /wp-content/plugins/wp-customizer/includes/class-wp-customizer.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-customizer/wp-customizer.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Attributes that require attention:
- Screenshots: Screenshot #1 (Settings and Options: Functions Tab with Contextual Help) image not found
wp-customizer/wp-customizer.php 92% from 13 tests
The entry point to "WP Customizer" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)
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,995 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 336 | 260 | 1,380 |
PO File | 2 | 204 | 256 | 500 |
JavaScript | 3 | 5 | 0 | 72 |
CSS | 4 | 8 | 0 | 42 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 11 | 17.46% |
▷ Public methods | 38 | 60.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 39.68% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 11 | 68.75% |
▷ Class constants | 5 | 31.25% |
▷ Public constants | 5 | 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
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 26.26KB | 16.23KB | ▼ 38.17% |
images/error.png | 0.54KB | 0.66KB | 0.00% |
images/success.png | 0.43KB | 0.49KB | 0.00% |
images/warning.png | 0.57KB | 0.67KB | 0.00% |