100% lh-dequeue-buddypress

Code Review | LH Dequeue Buddypress

WordPress plugin LH Dequeue Buddypress scored 100% from 54 tests.

About plugin

  • Plugin page: lh-dequeue-buddyp...
  • Plugin version: 1.04
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.8.1
  • First release: Nov 11, 2017
  • Latest release: Feb 20, 2021
  • Number of updates: 5
  • Update frequency: every 239.4 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 579 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by LH Dequeue Buddypress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1438.82 ▲3.11
Dashboard /wp-admin3.08 ▲0.0337.31 ▼12.19
Posts /wp-admin/edit.php3.13 ▲0.0249.76 ▲6.23
Add New Post /wp-admin/post-new.php5.44 ▲0.0095.23 ▼563.22
Media Library /wp-admin/upload.php3.02 ▲0.0234.17 ▲0.31

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for LH Dequeue Buddypress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.15 ▲0.618.87 ▼0.5553.23 ▼1.46
Dashboard /wp-admin2,967 ▲365.84 ▼0.18138.15 ▼20.26115.60 ▼6.60
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0169.72 ▼7.7991.18 ▼4.29
Add New Post /wp-admin/post-new.php1,604 ▼7918.80 ▲0.04391.62 ▲15.60117.07 ▲7.62
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03175.92 ▲15.65127.09 ▲3.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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: buddypress, dequeue, speed, styles, scripts

lh-dequeue-buddypress/lh-dequeue-buddypress.php Passed 13 tests

"LH Dequeue Buddypress" version 1.04's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Plugin to dequeue Buddypress styles and scripts

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

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods330.00%
▷ Public methods10100.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
No PNG images were found in this plugin