84% bbpress-beta-tester

Code Review | bbPress Beta Tester

WordPress plugin bbPress Beta Tester scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-beta-tester
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Nov 28, 2012
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: MZAWeb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by bbPress Beta Tester
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.46 ▼7.43
Dashboard /wp-admin3.32 ▲0.0253.19 ▼1.67
Posts /wp-admin/edit.php3.37 ▲0.0247.46 ▼1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.26 ▼15.14
Media Library /wp-admin/upload.php3.25 ▲0.0239.27 ▲1.27

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

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

Browser metrics Passed 4 tests

bbPress Beta Tester: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.10 ▼1.201.76 ▼0.3741.92 ▼3.86
Dashboard /wp-admin2,224 ▲214.84 ▼0.0399.97 ▼14.4239.65 ▼6.74
Posts /wp-admin/edit.php2,097 ▼61.96 ▼0.0436.73 ▼0.4435.68 ▼0.14
Add New Post /wp-admin/post-new.php1,548 ▼023.21 ▲0.00648.74 ▼46.8550.71 ▼3.21
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.02106.68 ▼14.0845.30 ▼4.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbpress-beta-tester/bbpress-beta-tester.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: bbpress

bbpress-beta-tester/bbpress-beta-tester.php Passed 13 tests

The principal PHP file in "bbPress Beta Tester" v. 0.1 is loaded by WordPress automatically on each request
63 characters long description:
Lets you easily upgrade to the latest trunk version of bbPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1274550

PHP code Passed 2 tests

This is a very shot 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.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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