84% buddypress-update-email-reminder-lightbox

Code Review | BuddyPress Update Email Reminder Lightbox

WordPress plugin BuddyPress Update Email Reminder Lightbox scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-update...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: May 21, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: arippberger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.34ms] Passed 4 tests

A check of server-side resources used by BuddyPress Update Email Reminder Lightbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.85 ▼3.46
Dashboard /wp-admin3.31 ▲0.0045.87 ▼0.00
Posts /wp-admin/edit.php3.36 ▲0.0046.34 ▼0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.35 ▼17.77
Media Library /wp-admin/upload.php3.23 ▲0.0034.10 ▲1.96

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Update Email Reminder Lightbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.011.83 ▼0.0043.81 ▼5.55
Dashboard /wp-admin2,206 ▲154.85 ▼0.04108.51 ▲1.3136.51 ▼7.26
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0138.75 ▲1.0234.86 ▲2.04
Add New Post /wp-admin/post-new.php1,514 ▼023.48 ▲6.02637.58 ▼44.2549.21 ▼11.65
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.05102.32 ▲1.3942.90 ▼2.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-update-email-reminder-lightbox/loader.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/buddypress-update-email-reminder-lightbox/buddypress-update-email-reminder-lightbox.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Front-end default view using TwentyFourteen Theme), #2 (Backend Settings Page), #3 (Backend Settings Page with Colorpicker in action)
Please take inspiration from this readme.txt

buddypress-update-email-reminder-lightbox/loader.php 92% from 13 tests

The principal PHP file in "BuddyPress Update Email Reminder Lightbox" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("buddypress-update-email-reminder-lightbox.php" instead of "loader.php")

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
Everything looks great! No dangerous files found in this plugin213 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25178172
CSS10034
JavaScript2007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.41MB with 0.28MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png201.37KB64.27KB▼ 68.08%
screenshot-1.png173.49KB51.95KB▼ 70.06%
screenshot-2.png41.45KB12.22KB▼ 70.52%