84% notification-buddypress

Code Review | Notification : BuddyPress

WordPress plugin Notification : BuddyPress scored84%from 54 tests.

About plugin

  • Plugin page: notification-budd...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Sep 16, 2019
  • Latest release: Nov 19, 2021
  • Number of updates: 11
  • Update frequency: every 72.7 days
  • Top authors: Kubitomakita (72.73%)bracketspace (36.36%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,923 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.55 ▼3.99
Dashboard /wp-admin3.31 ▲0.0144.76 ▼5.55
Posts /wp-admin/edit.php3.37 ▲0.0148.21 ▼1.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.98 ▼7.20
Media Library /wp-admin/upload.php3.24 ▲0.0136.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.121.77 ▼0.3045.09 ▼8.44
Dashboard /wp-admin2,206 ▲154.85 ▼0.95108.11 ▲7.8736.42 ▼2.48
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0246.84 ▲7.5138.54 ▲2.47
Add New Post /wp-admin/post-new.php1,534 ▲123.26 ▲0.01598.63 ▼76.7851.62 ▼11.22
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0596.70 ▲0.4743.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP871,2432,5683,617
JSON100485
Markdown648079
PO File191146
XML20034

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 code0.26
Average class complexity3.91
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces28
Interfaces1
Traits1
Classes75
▷ Abstract classes45.33%
▷ Concrete classes7194.67%
▷ Final classes00.00%
Methods249
▷ Static methods3514.06%
▷ Public methods24397.59%
▷ Protected methods31.20%
▷ Private methods31.20%
Functions22
▷ Named functions313.64%
▷ Anonymous functions1986.36%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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