99% lh-buddypress-woo

Code Review | LH Buddypress Woo

WordPress plugin LH Buddypress Woo scored 99% from 54 tests.

About plugin

  • Plugin page: lh-buddypress-woo
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 27, 2020
  • Latest release: Oct 27, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 166 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.29ms] Passed 4 tests

This is a short check of server-side resources used by LH Buddypress Woo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.19 ▲9.26
Dashboard /wp-admin3.08 ▲0.0347.01 ▲3.38
Posts /wp-admin/edit.php3.13 ▲0.0142.34 ▼10.75
Add New Post /wp-admin/post-new.php5.44 ▲0.0084.82 ▼561.91
Media Library /wp-admin/upload.php3.02 ▲0.0231.64 ▼3.89

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for LH Buddypress Woo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4216.00 ▲0.3812.44 ▲2.1746.89 ▲0.06
Dashboard /wp-admin2,970 ▲365.95 ▼0.01149.71 ▼26.73111.08 ▲1.81
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0067.77 ▲0.2590.42 ▲4.01
Add New Post /wp-admin/post-new.php1,498 ▼18518.88 ▲0.14400.89 ▲1.59107.59 ▼2.00
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.02152.94 ▲6.31111.71 ▼8.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

lh-buddypress-woo/lh-buddypress-woo.php 92% from 13 tests

The entry point to "LH Buddypress Woo" version 1.00 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin131 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27848131

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected