Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.04ms] Passed 4 tests
An overview of server-side resources used by Customize Twenty Seventeen
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.30 ▲1.46 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.43 ▼2.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.81 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.83 ▼10.27 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.13 ▲2.77 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Customize Twenty Seventeen
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.56 ▲0.21 | 1.67 ▼0.06 | 44.48 ▲3.57 |
Dashboard /wp-admin | 2,192 ▲12 | 5.61 ▼0.04 | 95.18 ▲5.42 | 42.99 ▼1.05 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.07 | 39.04 ▲2.27 | 35.95 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.44 ▲5.12 | 685.97 ▲26.51 | 56.98 ▼12.22 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.18 ▼0.04 | 95.58 ▲0.18 | 45.16 ▲1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-seventeen/bt-no-sidebar-bb.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-seventeen/bt-no-sidebar-boxed.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-twenty-seventeen/bt_customize_2017.php:29
- > PHP Fatal error
Uncaught Error: Class 'BoldThemes' not found in wp-content/plugins/customize-twenty-seventeen/web_fonts.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-seventeen/bt-no-sidebar-wide.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: twentyseventeen, fonts, page, header, modify...
customize-twenty-seventeen/bt_customize_2017.php 92% from 13 tests
Analyzing the main PHP file in "Customize Twenty Seventeen" version 1.0.5
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("customize-twenty-seventeen.php" instead of "bt_customize_2017.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin608 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 109 | 97 | 427 |
CSS | 1 | 41 | 8 | 181 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 14 | |
▷ Named functions | 14 | 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