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.12MB] [CPU: ▼1.50ms] Passed 4 tests
This is a short check of server-side resources used by BSF Docs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.84 ▼2.09 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.99 ▲1.96 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.99 ▲3.75 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 89.04 ▼8.93 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.45 ▲3.06 |
Add Doc /wp-admin/post-new.php?post_type=docs | 6.14 | 86.62 |
Settings /wp-admin/edit.php?post_type=docs&page=bsf_docs_settings | 3.35 | 33.42 |
Docs /wp-admin/edit.php?post_type=docs | 3.37 | 40.22 |
Categories /wp-admin/edit-tags.php?taxonomy=docs_category&post_type=docs | 3.31 | 35.10 |
Tags /wp-admin/edit-tags.php?taxonomy=docs_tag&post_type=docs | 3.31 | 35.42 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_bsf_docs_cat_widget |
widget_recent-posts |
widget_bsf_docs_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BSF Docs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.25 ▼1.14 | 1.86 ▲0.27 | 40.01 ▼1.27 |
Dashboard /wp-admin | 2,248 ▲60 | 5.88 ▲0.00 | 112.05 ▲10.39 | 44.24 ▲2.78 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.15 ▲0.16 | 35.13 ▲1.36 | 32.86 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,553 ▲29 | 23.40 ▲0.26 | 637.34 ▼29.17 | 54.62 ▲2.35 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.20 ▼0.03 | 93.54 ▼12.08 | 42.26 ▼1.25 |
Add Doc /wp-admin/post-new.php?post_type=docs | 6,475 | 24.95 | 890.98 | 31.76 |
Settings /wp-admin/edit.php?post_type=docs&page=bsf_docs_settings | 975 | 2.03 | 23.31 | 33.53 |
Docs /wp-admin/edit.php?post_type=docs | 1,140 | 1.94 | 30.29 | 29.54 |
Categories /wp-admin/edit-tags.php?taxonomy=docs_category&post_type=docs | 1,298 | 2.14 | 26.27 | 26.08 |
Tags /wp-admin/edit-tags.php?taxonomy=docs_tag&post_type=docs | 1,276 | 2.13 | 25.32 | 27.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- widget_bsf_docs_cat_widget
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_bsf_docs_widget
Smoke tests 50% 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 0% 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
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/bsf-docs/includes/bsf-options-page.php
- > /wp-content/plugins/bsf-docs/classes/class-bsf-doc-loader.php
- > /wp-content/plugins/bsf-docs/bsf-docs.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bsf-docs/includes/bsf-single-template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bsf-docs/includes/taxonomy-bsf-docs-cat.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bsf-docs/includes/bsf-archive-template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bsf-docs/includes/taxonomy-bsf-docs-tag.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: documentation, wpdocs, docs
bsf-docs/bsf-docs.php 92% from 13 tests
The main PHP script in "BSF Docs" version 1.0.6 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,603 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 267 | 348 | 1,006 |
CSS | 2 | 79 | 18 | 498 |
JavaScript | 2 | 42 | 52 | 99 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 36 | |
▷ Static methods | 6 | 16.67% |
▷ Public methods | 32 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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