84% bakkbone-billing-at-registration

Code Review | BAKKBONE Billing at Registration

WordPress plugin BAKKBONE Billing at Registration scored 84% from 54 tests.

About plugin

  • Plugin page: bakkbone-billing-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2022
  • Latest release: Apr 22, 2023
  • Number of updates: 9
  • Update frequency: every 13.3 days
  • Top authors: leggroup (88.89%)bakkbone (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 540 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by BAKKBONE Billing at Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.24 ▼1.11
Dashboard /wp-admin3.32 ▲0.0245.10 ▼2.16
Posts /wp-admin/edit.php3.37 ▲0.0244.02 ▼3.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.35 ▼13.25
Media Library /wp-admin/upload.php3.24 ▲0.0234.81 ▲0.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BAKKBONE Billing at Registration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.17 ▼1.301.79 ▼0.4045.40 ▼4.31
Dashboard /wp-admin2,222 ▲344.85 ▼0.0297.03 ▼0.9436.76 ▼6.11
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0132.79 ▼1.6233.27 ▼5.92
Add New Post /wp-admin/post-new.php1,541 ▲823.43 ▲0.37630.87 ▼1.2953.27 ▲0.40
Media Library /wp-admin/upload.php1,398 ▲104.24 ▲0.0299.07 ▼11.3842.81 ▼2.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bakkbone-billing-at-registration/incl/core.php
    • > /wp-content/plugins/bakkbone-billing-at-registration/incl/enqueue-styles.php
    • > /wp-content/plugins/bakkbone-billing-at-registration/incl/settings.php
    • > /wp-content/plugins/bakkbone-billing-at-registration/assets/css/index.php
    • > /wp-content/plugins/bakkbone-billing-at-registration/assets/js/index.php
    • > /wp-content/plugins/bakkbone-billing-at-registration/incl/admin-notices.php

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

bakkbone-billing-at-registration/bakkbone-billing-at-registration.php 92% from 13 tests

The entry point to "BAKKBONE Billing at Registration" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/i18n" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected755 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP66232536
CSS14034219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity19.00
▷ Minimum class complexity2.00
▷ Maximum class complexity65.00
Average method complexity6.14
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin