Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.81ms] Passed 4 tests
A check of server-side resources used by BC Mini Series
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.20 | 38.61 ▼2.08 |
Dashboard /wp-admin | 3.49 ▲0.19 | 46.19 ▼5.28 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.45 ▲2.48 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 96.65 ▲1.66 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.57 ▲4.60 |
Add new series /wp-admin/post-new.php?post_type=bc_mini_series | 3.54 | 49.91 |
All BC series /wp-admin/edit.php?post_type=bc_mini_series | 3.46 | 37.42 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_bc_mns_post_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for BC Mini Series
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.64 ▼0.74 | 10.03 ▲8.23 | 38.35 ▼4.08 |
Dashboard /wp-admin | 2,228 ▲52 | 4.97 ▲0.04 | 107.07 ▼6.19 | 46.14 ▲0.40 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.34 ▲0.33 | 37.88 ▲0.65 | 34.44 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6,468 ▲4,934 | 20.56 ▼2.71 | 846.27 ▲162.81 | 35.48 ▼30.73 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.16 ▼0.02 | 96.93 ▼1.81 | 42.33 ▲0.15 |
Add new series /wp-admin/post-new.php?post_type=bc_mini_series | 2,389 | 7.72 | 188.86 | 97.32 |
All BC series /wp-admin/edit.php?post_type=bc_mini_series | 1,107 | 2.17 | 30.64 | 30.41 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_bc_mns_post_widget
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: posts, mini series, series
bc-mini-series/main.php 85% from 13 tests
"BC Mini Series" version 1.5.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bc-mini-series.php" instead of "main.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
Good job! No executable or dangerous file extensions detected913 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 261 | 35 | 622 |
JavaScript | 1 | 36 | 5 | 217 |
CSS | 2 | 7 | 2 | 74 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 19 | 41.30% |
▷ Public methods | 35 | 76.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 23.91% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin