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.14MB] [CPU: ▼8.00ms] Passed 4 tests
Server-side resources used by Reset Customizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.47 ▼14.37 |
Dashboard /wp-admin | 3.46 ▲0.11 | 54.39 ▼9.09 |
Posts /wp-admin/edit.php | 3.58 ▲0.21 | 44.77 ▼2.17 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 83.31 ▼6.37 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 36.83 ▲2.86 |
Backup Customizer /wp-admin/themes.php?page=reset_customizer | 4.83 | 36.28 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reset Customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.72 ▲0.37 | 1.59 ▼0.37 | 45.07 ▼3.96 |
Dashboard /wp-admin | 2,196 ▲19 | 5.56 ▼0.11 | 86.24 ▼17.92 | 38.26 ▼6.02 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▼0.04 | 34.74 ▼0.65 | 31.58 ▼7.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.19 ▲1.70 | 680.00 ▼20.68 | 55.21 ▼0.09 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.01 | 98.45 ▼6.54 | 42.11 ▼4.25 |
Backup Customizer /wp-admin/themes.php?page=reset_customizer | 864 | 2.03 | 23.86 | 30.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/reset-customizer/reset-customizer.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: section, reset, sections, customize, customizer
reset-customizer/reset-customizer.php Passed 13 tests
The main PHP script in "Reset Customizer" version 1.1.5 is automatically included on every request by WordPress
111 characters long description:
Adds a reset button to each section in the customizer and easily backup / restore / migrate customizer settings
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected843 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 418 | 16 | 770 |
JavaScript | 2 | 5 | 3 | 73 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 42.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 24 | 64.86% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG files were detected