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.02MB] [CPU: ▼4.00ms] Passed 4 tests
Analyzing server-side resources used by Options for Twenty Seventeen
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.87 ▼11.63 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.15 ▼3.41 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 47.67 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.39 ▼0.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.03 ▲2.83 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Options for Twenty Seventeen
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.33 ▼0.02 | 1.55 ▼0.09 | 39.15 ▼0.62 |
Dashboard /wp-admin | 2,207 ▲36 | 5.54 ▼0.03 | 88.02 ▲2.16 | 41.56 ▲4.46 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.13 ▲0.17 | 41.10 ▲4.29 | 37.55 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 23.07 ▲4.90 | 666.54 ▲52.66 | 53.16 ▼8.82 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.20 ▼0.03 | 99.18 ▲2.17 | 44.70 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/options-for-twenty-seventeen/options-for-twenty-seventeen.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #4, #5, #6 in options-for-twenty-seventeen/assets to your readme.txt
options-for-twenty-seventeen/options-for-twenty-seventeen.php Passed 13 tests
The primary PHP file in "Options for Twenty Seventeen" version 2.5.2 is used by WordPress to initiate all plugin functionality
102 characters long description:
Adds powerful customizer options to modify all aspects of the default WordPress theme Twenty Seventeen
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,716 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 772 | 21 | 3,088 |
JavaScript | 2 | 69 | 9 | 612 |
CSS | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 62.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.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 | 48 | |
▷ Static methods | 27 | 56.25% |
▷ Public methods | 48 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin