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.52MB] [CPU: ▼8.53ms] Passed 4 tests
This is a short check of server-side resources used by Options for Twenty Twenty-One
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 42.70 ▲0.96 |
Dashboard /wp-admin | 4.00 ▲0.66 | 52.83 ▼12.74 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 48.67 ▲4.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 66.88 ▼24.68 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 36.27 ▲2.35 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Options for Twenty Twenty-One: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.27 ▼0.29 | 1.76 ▲0.00 | 43.70 ▼2.64 |
Dashboard /wp-admin | 2,195 ▲15 | 5.51 ▼0.05 | 82.73 ▼11.32 | 36.62 ▼3.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.00 | 36.71 ▲0.87 | 33.67 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 18.51 ▼4.67 | 597.48 ▼56.40 | 65.52 ▲8.46 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.00 | 103.35 ▲5.81 | 43.52 ▲1.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/options-for-twenty-twenty-one/options-for-twenty-twenty-one.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: customize, twenty-twenty-one, twentytwentyone, change, modify
options-for-twenty-twenty-one/options-for-twenty-twenty-one.php Passed 13 tests
The principal PHP file in "Options for Twenty Twenty-One" v. 1.7.2 is loaded by WordPress automatically on each request
103 characters long description:
Adds powerful customizer options to modify all aspects of the default Wordpress theme Twenty Twenty-One
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,891 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 948 | 26 | 4,196 |
JavaScript | 3 | 120 | 3 | 682 |
CSS | 1 | 1 | 0 | 13 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 94.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 192.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.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 | 40 | |
▷ Static methods | 26 | 65.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin