83% buddypress-last-active-users-wp-admin

Code Review | BuddyPress Last Active Users (wp-admin)

WordPress plugin BuddyPress Last Active Users (wp-admin) scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-last-a...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Jan 5, 2015
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: slaFFik (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,211 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by BuddyPress Last Active Users (wp-admin)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼4.58
Dashboard /wp-admin3.31 ▲0.0141.62 ▼7.70
Posts /wp-admin/edit.php3.36 ▲0.0145.63 ▼0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.33 ▼19.33
Media Library /wp-admin/upload.php3.23 ▲0.0132.81 ▼1.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Last Active Users (wp-admin)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.34 ▼0.951.77 ▼0.3643.12 ▲1.47
Dashboard /wp-admin2,206 ▲154.84 ▼0.03112.35 ▲11.0441.34 ▼3.21
Posts /wp-admin/edit.php2,086 ▼62.16 ▲0.1536.39 ▼3.0836.37 ▲2.64
Add New Post /wp-admin/post-new.php1,537 ▲2323.18 ▼0.41658.60 ▼21.6555.72 ▲6.01
Media Library /wp-admin/upload.php1,385 ▲34.22 ▲0.0493.95 ▼6.8240.84 ▼3.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-last-active-users-wp-admin/bpla-users.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

buddypress-last-active-users-wp-admin/bpla-users.php 77% from 13 tests

"BuddyPress Last Active Users (wp-admin)" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/langs/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-last-active-users-wp-admin.php" instead of "bpla-users.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172718

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin