Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲5.06MB] [CPU: ▲27.37ms] 75% from 4 tests
A check of server-side resources used by Announcement & Notification Banner - Bulletin
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.06MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 69.06 ▲33.47 |
Dashboard /wp-admin | 8.91 ▲5.60 | 72.61 ▲26.55 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 84.99 ▲35.96 |
Add New Post /wp-admin/post-new.php | 9.56 ▲3.67 | 114.43 ▲18.61 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 65.42 ▲30.85 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 8.91 | 56.54 |
Server storage [IO: ▲5.01MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 428 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_bulletinwp_bulletins |
wp_bulletinwp_options |
New WordPress options |
---|
fs_debug_mode |
can_compress_scripts |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Announcement & Notification Banner - Bulletin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.27 ▼0.07 | 1.53 ▼0.09 | 28.04 ▼8.93 |
Dashboard /wp-admin | 2,242 ▲65 | 5.59 ▲0.06 | 95.22 ▲6.87 | 79.76 ▲40.70 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 2.02 ▲0.02 | 40.18 ▼1.45 | 36.96 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,561 ▲24 | 23.14 ▲4.99 | 677.08 ▲22.55 | 51.41 ▼15.35 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.23 ▲0.08 | 94.89 ▼1.17 | 78.09 ▲34.88 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 1,111 | 1.67 | 27.25 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/bulletin-announcements/modules/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_accounts
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- fs_active_plugins
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bulletin-announcements/core/config.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
5 plugin tags: banners, announcements, notice, countdown, notifications
bulletin-announcements/bulletinwp.php 85% from 13 tests
The principal PHP file in "Announcement & Notification Banner - Bulletin" v. 3.8.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bulletin-announcements.php" instead of "bulletinwp.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin55,046 lines of code in 327 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 8,550 | 18,314 | 37,942 |
JavaScript | 96 | 2,855 | 947 | 11,473 |
CSS | 19 | 451 | 230 | 2,174 |
PO File | 5 | 885 | 1,050 | 2,014 |
Sass | 23 | 284 | 25 | 1,088 |
SVG | 40 | 0 | 5 | 339 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,087)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 77.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,087.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 1 | 1.69% |
Methods | 1,374 | |
▷ Static methods | 199 | 14.48% |
▷ Public methods | 976 | 71.03% |
▷ Protected methods | 18 | 1.31% |
▷ Private methods | 380 | 27.66% |
Functions | 101 | |
▷ Named functions | 99 | 98.02% |
▷ Anonymous functions | 2 | 1.98% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
modules/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
modules/freemius/assets/img/bulletinwp.png | 13.57KB | 3.86KB | ▼ 71.55% |