Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.18MB] [CPU: ▲21.40ms] 50% from 4 tests
A check of server-side resources used by WP Notification Bell
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,854.06ms on /wp-admin/edit.php?post_type=wnbell_notifications&page=wp-notification-bell-addons)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.18MB on /wp-admin/edit.php?post_type=wnbell_notifications&page=wp-notification-bell-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.92 ▲5.46 | 73.86 ▲32.09 |
Dashboard /wp-admin | 8.94 ▲5.59 | 77.70 ▲10.06 |
Posts /wp-admin/edit.php | 8.94 ▲5.58 | 92.05 ▲38.95 |
Add New Post /wp-admin/post-new.php | 9.99 ▲4.10 | 123.76 ▲4.49 |
Media Library /wp-admin/upload.php | 8.94 ▲5.71 | 83.75 ▲42.78 |
Upgrade ➤ /wp-admin/edit.php?post_type=wnbell_notifications&page=wp-notification-bell-pricing | 8.95 | 75.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.94 | 71.70 |
Add New /wp-admin/post-new.php?post_type=wnbell_notifications | 8.95 | 80.27 |
Settings /wp-admin/edit.php?post_type=wnbell_notifications&page=wnbell-sub-menu | 8.95 | 68.27 |
All Notifications /wp-admin/edit.php?post_type=wnbell_notifications | 8.95 | 70.69 |
Settings /wp-admin/admin.php?page=wp-notification-bell | 8.94 | 62.52 |
Contact Us /wp-admin/admin.php?page=wp-notification-bell-contact | 8.94 | 65.12 |
Support Forum /wp-admin/admin.php?page=wp-notification-bell-wp-support-forum | 8.94 | 55.40 |
Add-Ons /wp-admin/edit.php?post_type=wnbell_notifications&page=wp-notification-bell-addons | 8.95 | 1,854.06 |
Server storage [IO: ▲3.40MB] [DB: ▲0.03MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/wp-notification-bell/" and "wp-content/uploads/"
- (new file) wp-content/logs/wnbell/.empty
Filesystem: 203 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_wnbell_recipients_role |
wp_wnbell_recipients |
New WordPress options |
---|
widget_recent-posts |
fs_debug_mode |
wnbell_change_metakeys_complete |
db_upgraded |
fs_active_plugins |
wnbell_db_version |
widget_recent-comments |
fs_accounts |
wnbell_options |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Notification Bell
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲213 | 13.42 ▼0.79 | 8.58 ▲6.80 | 38.97 ▲0.41 |
Dashboard /wp-admin | 2,241 ▲67 | 5.57 ▼0.09 | 98.12 ▲3.65 | 45.75 ▲4.20 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 1.98 ▼0.07 | 41.02 ▼3.80 | 40.42 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,628 ▲91 | 21.36 ▲2.98 | 665.33 ▼25.10 | 58.35 ▼2.62 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.19 ▼0.19 | 111.53 ▲7.47 | 54.22 ▲7.73 |
Upgrade ➤ /wp-admin/edit.php?post_type=wnbell_notifications&page=wp-notification-bell-pricing | 2,196 | 3.32 | 64.73 | 111.58 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,110 | 1.70 | 25.15 | 33.94 |
Add New /wp-admin/post-new.php?post_type=wnbell_notifications | 1,767 | 3.61 | 61.82 | 34.54 |
Settings /wp-admin/edit.php?post_type=wnbell_notifications&page=wnbell-sub-menu | 1,352 | 1.69 | 27.18 | 36.52 |
All Notifications /wp-admin/edit.php?post_type=wnbell_notifications | 1,124 | 1.90 | 29.62 | 34.86 |
Settings /wp-admin/admin.php?page=wp-notification-bell | 1,351 | 1.68 | 25.89 | 30.82 |
Contact Us /wp-admin/admin.php?page=wp-notification-bell-contact | 1,608 | 3.15 | 53.71 | 33.53 |
Support Forum /wp-admin/admin.php?page=wp-notification-bell-wp-support-forum | 2,775 | 4.01 | 89.52 | 102.04 |
Add-Ons /wp-admin/edit.php?post_type=wnbell_notifications&page=wp-notification-bell-addons | 1,213 | 2.63 | 43.98 | 38.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-notification-bell/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- fs_debug_mode
- db_upgraded
- can_compress_scripts
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #10, #11, #12, #13, #14, #15, #9 in wp-notification-bell/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-notification-bell/wp-notification-bell.php Passed 13 tests
The main PHP file in "WP Notification Bell" ver. 1.3.27 adds more information about the plugin and also serves as the entry point for this plugin
28 characters long description:
On-site notification system.
Code Analysis 97% from 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
There were no executable files found in this plugin39,896 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 8,532 | 17,668 | 38,909 |
CSS | 15 | 48 | 149 | 484 |
JavaScript | 5 | 51 | 76 | 331 |
PO File | 1 | 68 | 83 | 172 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 93.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 190 | |
▷ Named functions | 189 | 99.47% |
▷ Anonymous functions | 1 | 0.53% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |