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.08MB] [CPU: ▼3.40ms] Passed 4 tests
This is a short check of server-side resources used by Customizer Reset - Export & Import
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.40 ▼7.98 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.72 ▼3.50 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.88 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 91.65 ▼0.51 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.53 ▼1.61 |
Server storage [IO: ▲0.03MB] [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: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Customizer Reset - Export & Import
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.60 ▲0.26 | 2.00 ▲0.39 | 40.97 ▼3.12 |
Dashboard /wp-admin | 2,199 ▲21 | 5.65 ▼0.02 | 93.82 ▼20.48 | 41.78 ▲0.52 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.06 | 39.54 ▲2.02 | 36.40 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 24.95 ▲1.63 | 592.81 ▼120.16 | 64.92 ▲5.72 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▲0.01 | 96.12 ▼0.49 | 41.77 ▼2.61 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/customizer-reset/templates/import-form.php
- > /wp-content/plugins/customizer-reset/customizer-reset.php
- > /wp-content/plugins/customizer-reset/autoload.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/customizer-reset/helpers/class-customizer-setting.php:16
- > PHP Fatal error
Uncaught Error: Class 'CustomizerReset\\Helpers\\Base' not found in wp-content/plugins/customizer-reset/helpers/class-export.php:13
- > PHP Fatal error
Uncaught Error: Class 'CustomizerReset\\Helpers\\Base' not found in wp-content/plugins/customizer-reset/helpers/class-import.php:13
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: export, customizer import, customizer export, import, customizer reset...
customizer-reset/customizer-reset.php Passed 13 tests
"Customizer Reset - Export & Import" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
Reset, export, and import your WordPress Customizer settings with just one click of a button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin541 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 112 | 194 | 343 |
CSS | 1 | 21 | 5 | 136 |
JavaScript | 1 | 18 | 24 | 59 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin