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.15MB] [CPU: ▼2.62ms] Passed 4 tests
An overview of server-side resources used by Bulletin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.69 ▼4.57 |
Dashboard /wp-admin | 3.51 ▲0.20 | 49.27 ▼3.84 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 56.67 ▲4.79 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.13 | 94.91 ▼6.87 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 38.24 ▲8.02 |
Bulletin /wp-admin/options-general.php?page=bulletin | 3.33 | 35.51 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_widget_bulletin |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Bulletin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▲0.01 | 2.16 ▲0.47 | 46.45 ▲0.97 |
Dashboard /wp-admin | 2,196 ▲22 | 5.69 ▲0.06 | 89.36 ▼15.44 | 39.46 ▼5.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.00 | 39.74 ▲3.20 | 36.48 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.04 ▼0.05 | 653.56 ▼1.36 | 63.96 ▼7.89 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.17 ▲0.00 | 100.32 ▼0.72 | 43.34 ▼4.46 |
Bulletin /wp-admin/options-general.php?page=bulletin | 802 | 2.03 | 25.79 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_widget_bulletin
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bulletin/public/partials/bulletin-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bulletin/admin/partials/bulletin-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bulletin/public/partials/bulletin-widget.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== bulletin ===
)
bulletin/bulletin.php Passed 13 tests
"Bulletin" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Let visitors subscribe to your Bulletin lists.
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
No dangerous file extensions were detected934 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 275 | 871 | 791 |
PO File | 1 | 23 | 24 | 68 |
JSON | 3 | 0 | 0 | 67 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 0 | 0 | 2 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 5 | 7.69% |
▷ Public methods | 57 | 87.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.31% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin