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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.74ms] Passed 4 tests
This is a short check of server-side resources used by Customize Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.62 ▼2.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.53 ▼1.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.88 ▲4.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.74 ▼9.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.73 ▼1.18 |
Customize Widgets /wp-admin/themes.php?page=customize-widgets | 3.18 | 28.21 |
Server storage [IO: ▲1.19MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 208 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Customize Widgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▲0.11 | 1.66 ▼0.06 | 37.96 ▲0.41 |
Dashboard /wp-admin | 2,199 ▲18 | 5.61 ▼0.07 | 90.73 ▼12.36 | 39.37 ▼5.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 39.74 ▼0.28 | 35.29 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.49 ▲0.78 | 664.17 ▲37.93 | 54.35 ▲5.30 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.06 | 95.58 ▼0.46 | 40.21 ▼0.66 |
Customize Widgets /wp-admin/themes.php?page=customize-widgets | 863 | 1.94 | 24.40 | 33.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/themes.php?page=customize-widgets
- > Notice in wp-content/plugins/customize-widgets/customize-widgets.php+114
Undefined variable: hidden_field_name
SRP 50% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/customize-widgets/customize-widgets.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== customize-widgets ===
) - Tags: There are too many tags (11 tag instead of maximum 10)
customize-widgets/customize-widgets.php Passed 13 tests
The primary PHP file in "Customize Widgets" version 1.0 is used by WordPress to initiate all plugin functionality
114 characters long description:
Widgets cluttering up your site? This plugin allows you to hide unused widgets from appearing on the widgets page.
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
Good job! No executable or dangerous file extensions detected224 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 11 | 23 | 119 |
PHP | 1 | 30 | 27 | 105 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 2 | 66.67% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
205 PNG files occupy 1.17MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blue/fs-paragraph.png | 5.02KB | 2.56KB | ▼ 49.00% |
images/blue/fs-file_video.png | 4.65KB | 2.28KB | ▼ 50.85% |
images/blue/fs-picture.png | 4.54KB | 2.25KB | ▼ 50.60% |
images/blue/fs-newspaper.png | 4.37KB | 2.12KB | ▼ 51.39% |
images/blue/fs-rotate.png | 6.24KB | 2.88KB | ▼ 53.86% |