84% buddypress-admin-access-activity

Code Review | BuddyPress Admin Access Activity

WordPress plugin BuddyPress Admin Access Activity scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-admin-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: Oct 19, 2013
  • Number of updates: 6
  • Update frequency: every 3.3 days
  • Top authors: blahblahyaya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by BuddyPress Admin Access Activity
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.93 ▼2.53
Dashboard /wp-admin3.31 ▼0.0450.38 ▼13.04
Posts /wp-admin/edit.php3.36 ▲0.0047.50 ▲0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.95 ▼16.18
Media Library /wp-admin/upload.php3.24 ▲0.0038.47 ▲5.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 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

Checking browser requirements for BuddyPress Admin Access Activity
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.131.98 ▲0.2944.37 ▲1.91
Dashboard /wp-admin2,195 ▲215.64 ▲0.0788.01 ▼0.6138.57 ▼4.85
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0140.44 ▲6.1846.65 ▲8.83
Add New Post /wp-admin/post-new.php1,526 ▼222.86 ▼0.13619.20 ▼47.4055.10 ▼9.47
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0399.02 ▼9.3142.83 ▼2.60

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-admin-access-activity/main.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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: buddypress, email, notifications, messaging, activity

buddypress-admin-access-activity/main.php 85% from 13 tests

The primary PHP file in "BuddyPress Admin Access Activity" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-admin-access-activity.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1398

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin