90% hide-member-visibility-for-buddypress

Code Review | Hide Member Visibility for BuddyPress

WordPress plugin Hide Member Visibility for BuddyPress scored90%from 54 tests.

About plugin

  • Plugin page: hide-member-visib...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2019
  • Latest release: Jul 17, 2019
  • Number of updates: 7
  • Update frequency: every 13.0 days
  • Top authors: sunnjohnson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /5,178 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.19MB] [CPU: ▼12.62ms] Passed 4 tests

An overview of server-side resources used by Hide Member Visibility for BuddyPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6315.88 ▼26.67
Dashboard /wp-admin3.32 ▲0.0244.99 ▼4.48
Posts /wp-admin/edit.php3.18 ▼0.1831.93 ▼14.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.95 ▼5.21
Media Library /wp-admin/upload.php3.24 ▲0.0233.98 ▲0.23

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Member Visibility for BuddyPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.27 ▼1.111.52 ▼0.3739.29 ▼7.02
Dashboard /wp-admin2,206 ▲184.85 ▼0.02108.98 ▼9.6842.42 ▼1.14
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0239.71 ▲5.3735.77 ▼0.05
Add New Post /wp-admin/post-new.php1,542 ▲618.34 ▼5.07601.04 ▼64.6449.32 ▼7.22
Media Library /wp-admin/upload.php1,388 ▲64.16 ▼0.1294.21 ▼2.0844.67 ▲2.72

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: hide member, directory, member, member directory, buddypress

hide-member-visibility-for-buddypress/hide-member-visibility-for-buddypress.php Passed 13 tests

The main PHP script in "Hide Member Visibility for BuddyPress" version 1.0 is automatically included on every request by WordPress
33 characters long description:
Hides BuddyPress Member Visibiity

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 detected55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1242055

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.48
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%
Functions5
▷ Named functions5100.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 are no PNG files in this plugin