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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.03ms] Passed 4 tests
Analyzing server-side resources used by Customize Twenty Sixteen
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.87 ▲0.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.87 ▼10.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 53.61 ▲2.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 100.01 ▲1.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.31 ▲0.37 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Customize Twenty Sixteen
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.29 ▼1.50 | 1.90 ▼0.02 | 40.66 ▼7.98 |
Dashboard /wp-admin | 2,206 ▼3 | 5.84 ▼0.01 | 107.25 ▲7.50 | 40.35 ▲1.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 39.51 ▲4.64 | 33.71 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.30 ▲0.21 | 585.95 ▼32.92 | 48.98 ▲1.89 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.30 ▲0.12 | 95.14 ▼8.45 | 41.00 ▼1.84 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-sixteen/bt-no-sidebar-bb.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-twenty-sixteen/bt_customize_2016.php:29
- > PHP Fatal error
Uncaught Error: Class 'BoldThemes' not found in wp-content/plugins/customize-twenty-sixteen/web_fonts.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-sixteen/bt-no-sidebar-wide.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/customize-twenty-sixteen/bt-no-sidebar-boxed.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: template, header, change, sidebar, fonts...
customize-twenty-sixteen/bt_customize_2016.php 92% from 13 tests
"Customize Twenty Sixteen" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("customize-twenty-sixteen.php" instead of "bt_customize_2016.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin560 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 99 | 77 | 449 |
CSS | 1 | 33 | 8 | 111 |
JavaScript | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 18 | |
▷ Named functions | 18 | 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 files were detected