Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼15.43ms] Passed 4 tests
A check of server-side resources used by Options for Twenty Twenty
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 46.55 ▼6.44 |
Dashboard /wp-admin | 3.85 ▲0.51 | 53.12 ▼25.64 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 46.68 ▼7.79 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 94.39 ▼21.85 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 40.45 ▼4.93 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Options for Twenty Twenty
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.26 | 1.68 ▼0.64 | 42.81 ▼9.85 |
Dashboard /wp-admin | 2,195 ▲27 | 5.61 ▼0.05 | 83.89 ▼34.10 | 37.97 ▼16.79 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▲0.05 | 36.08 ▼12.91 | 33.61 ▼12.17 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.43 ▼2.95 | 605.50 ▼248.01 | 60.29 ▲0.87 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.07 | 96.61 ▼88.08 | 42.65 ▼24.14 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/options-for-twenty-twenty/options-for-twenty-twenty.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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: modify, change, customize, twentytwenty, twenty-twenty
options-for-twenty-twenty/options-for-twenty-twenty.php Passed 13 tests
The main file in "Options for Twenty Twenty" v. 1.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Adds powerful customizer options to modify all aspects of the default WordPress theme Twenty Twenty
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 plugin3,663 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 797 | 22 | 3,213 |
JavaScript | 3 | 52 | 5 | 439 |
CSS | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 64.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.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 | 45 | |
▷ Static methods | 24 | 53.33% |
▷ Public methods | 45 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected