84% lh-buddypress-multi-network

Code Review | LH Buddypress Multi Network

WordPress plugin LH Buddypress Multi Network scored84%from 54 tests.

About plugin

  • Plugin page: lh-buddypress-mul...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Mar 26, 2021
  • Number of updates: 5
  • Update frequency: every 31.4 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,146 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.03MB] [CPU: ▼8.77ms] Passed 4 tests

Server-side resources used by LH Buddypress Multi Network
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.21 ▼2.23
Dashboard /wp-admin3.35 ▲0.0048.91 ▼16.47
Posts /wp-admin/edit.php3.46 ▲0.1050.01 ▲4.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.01 ▼18.90
Media Library /wp-admin/upload.php3.27 ▲0.0436.49 ▲2.51

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

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

Browser metrics Passed 4 tests

LH Buddypress Multi Network: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.21 ▼0.171.68 ▼0.0841.53 ▼1.05
Dashboard /wp-admin2,198 ▲215.62 ▼0.0396.33 ▼1.5839.26 ▼2.94
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0139.52 ▼0.1535.69 ▼2.99
Add New Post /wp-admin/post-new.php1,537 ▲318.09 ▼0.62593.26 ▼16.8066.16 ▼0.99
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0696.66 ▼7.1342.23 ▲1.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-buddypress-multi-network/lh-buddypress-multi-network.php:492

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: multiple, buddypress, saas, multisite, network

lh-buddypress-multi-network/lh-buddypress-multi-network.php 85% from 13 tests

The main PHP file in "LH Buddypress Multi Network" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Please use dashes and lowercase characters for text domains

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 detected238 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP222248238

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods940.91%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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