Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/notifications-for-pushbear/notifications-for-pushbear.php+19
The use statement with non-compound name 'Pushbear' has no effect
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.92ms] Passed 4 tests
Analyzing server-side resources used by Notifications For Pushbear
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 39.49 ▼2.62 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.73 ▼8.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.62 ▼0.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.49 ▼8.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.30 ▲0.11 |
Notifications For Pushbear /wp-admin/options-general.php?page=notifications_for_Pushbear | 3.18 | 30.19 |
Server storage [IO: ▲0.01MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Notifications For Pushbear
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▲0.12 | 1.82 ▼0.46 | 40.92 ▼5.91 |
Dashboard /wp-admin | 2,207 ▲28 | 5.80 ▼0.07 | 97.48 ▼4.53 | 42.82 ▼1.01 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.03 ▼0.11 | 34.79 ▼2.45 | 35.31 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,540 ▲18 | 23.31 ▲0.17 | 671.99 ▲39.20 | 57.99 ▼0.39 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.02 | 103.04 ▲5.37 | 45.75 ▼4.43 |
Notifications For Pushbear /wp-admin/options-general.php?page=notifications_for_Pushbear | 795 | 2.04 | 27.49 | 35.87 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=notifications_for_Pushbear
- > Notice in wp-content/plugins/notifications-for-pushbear/admin/init.php+63
Trying to access array offset on value of type bool
SRP 50% 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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-pushbear/admin/init.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-pushbear/events/user.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-pushbear/admin/init.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifications-for-pushbear/events/user.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 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
1 plugin tags: notification
notifications-for-pushbear/notifications-for-pushbear.php Passed 13 tests
"Notifications For Pushbear" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
A Notifications Plugin For Pushbear
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin185 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 41 | 12 | 129 |
PO File | 1 | 14 | 14 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin