Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼3.82ms] Passed 4 tests
This is a short check of server-side resources used by Options for Twenty Nineteen
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 42.45 ▲2.08 |
Dashboard /wp-admin | 3.55 ▲0.20 | 53.06 ▼7.14 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 48.50 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 85.80 ▼9.39 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.05 ▼0.84 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Options for Twenty Nineteen
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.34 ▼0.00 | 2.17 ▲0.37 | 42.82 ▲1.15 |
Dashboard /wp-admin | 2,198 ▲23 | 5.64 ▼0.08 | 94.49 ▼6.63 | 40.88 ▲1.39 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.00 | 37.74 ▲2.37 | 35.45 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼17 | 23.57 ▲0.39 | 683.15 ▲5.08 | 60.38 ▲9.12 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.24 ▲0.07 | 96.39 ▼3.40 | 41.39 ▼1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/options-for-twenty-nineteen/options-for-twenty-nineteen.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: twenty-nineteen, change, customize, modify, twentynineteen
options-for-twenty-nineteen/options-for-twenty-nineteen.php Passed 13 tests
"Options for Twenty Nineteen" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
Adds powerful customizer options to modify all aspects of the default WordPress theme Twenty Nineteen
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,428 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 535 | 17 | 1,242 |
JavaScript | 3 | 20 | 9 | 175 |
CSS | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.93 |
▷ 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 | 41 | |
▷ Static methods | 24 | 58.54% |
▷ Public methods | 41 | 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