90% bp-beta-tester

Code Review | BP Beta Tester

WordPress plugin BP Beta Tester scored90%from 54 tests.

About plugin

  • Plugin page: bp-beta-tester
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2019
  • Latest release: Aug 4, 2023
  • Number of updates: 6
  • Update frequency: every 224.0 days
  • Top authors: imath (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.12ms] Passed 4 tests

An overview of server-side resources used by BP Beta Tester
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.23 ▲3.02
Dashboard /wp-admin3.32 ▼0.0255.64 ▼8.47
Posts /wp-admin/edit.php3.37 ▲0.0250.61 ▲2.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.90 ▼21.78
Media Library /wp-admin/upload.php3.24 ▲0.0238.97 ▲3.23
Beta Test BuddyPress /wp-admin/index.php?page=bp-beta-tester3.42493.40

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

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

Browser metrics Passed 4 tests

BP Beta Tester: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.211.71 ▼0.4242.72 ▲0.33
Dashboard /wp-admin2,195 ▲215.56 ▼0.0290.16 ▼5.4439.40 ▲0.44
Posts /wp-admin/edit.php2,106 ▲62.02 ▼0.0135.35 ▼2.0437.38 ▼0.39
Add New Post /wp-admin/post-new.php1,533 ▲523.11 ▲0.07677.55 ▲35.5957.10 ▲3.99
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0597.93 ▼10.1439.83 ▼9.05
Beta Test BuddyPress /wp-admin/index.php?page=bp-beta-tester8072.0226.5733.96

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% 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: test, beta, rc, betatest, buddypress

bp-beta-tester/class-bp-beta-tester.php 92% from 13 tests

The main PHP script in "BP Beta Tester" version 1.2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-beta-tester.php" instead of "class-bp-beta-tester.php")

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
There were no executable files found in this plugin569 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP398204444
CSS1237125

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions18
▷ Named functions18100.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