Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.65ms] Passed 4 tests
Analyzing server-side resources used by Notification : BuddyPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.55 ▼3.99 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.76 ▼5.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.21 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.98 ▼7.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.22 ▲4.28 |
Server storage [IO: ▲0.24MB] [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: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Notification : BuddyPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.12 | 1.77 ▼0.30 | 45.09 ▼8.44 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.95 | 108.11 ▲7.87 | 36.42 ▼2.48 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▲0.02 | 46.84 ▲7.51 | 38.54 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.26 ▲0.01 | 598.63 ▼76.78 | 51.62 ▼11.22 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.16 ▼0.05 | 96.70 ▲0.47 | 43.00 ▼0.93 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 56× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\BuddyPress\\Repository\\Trigger\\Group' not found in wp-content/plugins/notification-buddypress/src/Repository/Trigger/Group/Join.php:16
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\Defaults\\MergeTag\\StringTag' not found in wp-content/plugins/notification-buddypress/src/Repository/MergeTag/Group/Description.php:19
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\BuddyPress\\Repository\\Trigger\\Group' not found in wp-content/plugins/notification-buddypress/src/Repository/Trigger/Group/UninviteUser.php:16
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\BuddyPress\\Repository\\Trigger\\Friendship' not found in wp-content/plugins/notification-buddypress/src/Repository/Trigger/Friendship/Requested.php:16
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\Defaults\\MergeTag\\StringTag' not found in wp-content/plugins/notification-buddypress/src/Repository/MergeTag/Activity/Content.php:19
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\BuddyPress\\Repository\\Trigger\\Activity' not found in wp-content/plugins/notification-buddypress/src/Repository/Trigger/Activity/Added.php:16
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\Abstracts\\Trigger' not found in wp-content/plugins/notification-buddypress/src/Repository/Trigger/Friendship.php:16
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\Abstracts\\Recipient' not found in wp-content/plugins/notification-buddypress/src/Repository/Recipient/User.php:17
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\Defaults\\MergeTag\\UrlTag' not found in wp-content/plugins/notification-buddypress/src/Repository/MergeTag/Activity/PrimaryLink.php:19
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\otification\\BuddyPress\\Repository\\Trigger\\Friendship' not found in wp-content/plugins/notification-buddypress/src/Repository/Trigger/Friendship/Deleted.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% 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: mail, email, notify, notification, buddypress
notification-buddypress/notification-buddypress.php 92% from 13 tests
The main PHP file in "Notification : BuddyPress" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,261 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 1,243 | 2,568 | 3,617 |
JSON | 1 | 0 | 0 | 485 |
Markdown | 6 | 48 | 0 | 79 |
PO File | 1 | 9 | 11 | 46 |
XML | 2 | 0 | 0 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 75 | |
▷ Abstract classes | 4 | 5.33% |
▷ Concrete classes | 71 | 94.67% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 35 | 14.06% |
▷ Public methods | 243 | 97.59% |
▷ Protected methods | 3 | 1.20% |
▷ Private methods | 3 | 1.20% |
Functions | 22 | |
▷ Named functions | 3 | 13.64% |
▷ Anonymous functions | 19 | 86.36% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin