10% buddypress-notifications-manager

Code Review | Buddypress Notifications Manager

WordPress plugin Buddypress Notifications Manager scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-notifi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: Example: WP 3.2.1, BuddyPress 1.5+
  • WordPress version: 6.3.1
  • First release: Oct 16, 2012
  • Latest release: Oct 17, 2012
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: megainfo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /6,476 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/buddypress-notifications-manager/loader.php+117
    Use of undefined constant BP_VERSION - assumed 'BP_VERSION' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.99ms] Passed 4 tests

Server-side resources used by Buddypress Notifications Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.39 ▼1.23
Dashboard /wp-admin3.31 ▼0.0450.76 ▼13.91
Posts /wp-admin/edit.php3.36 ▲0.0049.69 ▼17.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.04 ▼7.46
Media Library /wp-admin/upload.php3.23 ▲0.0037.54 ▲3.45

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Buddypress Notifications Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.61 ▲0.061.70 ▼0.1443.33 ▲2.01
Dashboard /wp-admin2,198 ▲185.65 ▲0.0194.56 ▼2.0242.63 ▲1.15
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0535.59 ▼3.8836.76 ▼1.75
Add New Post /wp-admin/post-new.php1,526 ▼2317.92 ▼0.60676.74 ▲26.8750.90 ▲2.96
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.02100.34 ▼3.2046.63 ▼3.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tested up to: Invalid plugin version format
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

buddypress-notifications-manager/loader.php 85% from 13 tests

The main file in "Buddypress Notifications Manager" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "Example: WP 3.2.1, BuddyPress 1.5")
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-notifications-manager.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin215 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23771164
PO File1151751

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png4.83KB2.56KB▼ 46.92%
screenshot-1.png189.90KB55.81KB▼ 70.61%
screenshot-2.png32.48KB13.53KB▼ 58.34%
screenshot-4.png7.37KB4.12KB▼ 44.14%