79% booster-for-wpforms

Code Review | Booster for WPForms

WordPress plugin Booster for WPForms scored79%from 54 tests.

About plugin

  • Plugin page: booster-for-wpforms
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 16, 2019
  • Latest release: Oct 2, 2023
  • Number of updates: 16
  • Update frequency: every 100.0 days
  • Top authors: wpmonks (93.75%)aman086 (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.24ms] Passed 4 tests

An overview of server-side resources used by Booster for WPForms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.43 ▲0.18
Dashboard /wp-admin3.47 ▲0.1649.72 ▲4.21
Posts /wp-admin/edit.php3.58 ▲0.2246.01 ▼1.08
Add New Post /wp-admin/post-new.php6.05 ▲0.1689.60 ▼7.24
Media Library /wp-admin/upload.php3.39 ▲0.1637.91 ▲3.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
bfwpf_licenses
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Booster for WPForms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.64 ▼0.731.67 ▼0.4048.19 ▲4.22
Dashboard /wp-admin2,222 ▲375.85 ▲0.94105.56 ▲2.0642.94 ▲0.50
Posts /wp-admin/edit.php2,102 ▲131.99 ▼0.0236.52 ▼5.5933.06 ▼4.89
Add New Post /wp-admin/post-new.php1,550 ▲1723.57 ▲0.45670.72 ▲60.3648.99 ▼3.35
Media Library /wp-admin/upload.php1,404 ▲134.22 ▲0.0394.37 ▼10.8043.44 ▼2.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • bfwpf_licenses
    • theysaidso_admin_options

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/booster-for-wpforms/booster-for-wpforms.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/booster-for-wpforms/includes/admin/bfwpf-minmax.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/booster-for-wpforms/includes/admin/bfwpf-maxchars.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/booster-for-wpforms/includes/admin/bfwpf-readonly-fields.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booster-for-wpforms/admin-menu/licenses.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: wpforms booster, wpforms snippets, wpforms functionality

booster-for-wpforms/booster-for-wpforms.php Passed 13 tests

The primary PHP file in "Booster for WPForms" version 1.2 is used by WordPress to initiate all plugin functionality
31 characters long description:
Add missing features to WPForms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected918 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6290247915
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity40.33
▷ Minimum class complexity2.00
▷ Maximum class complexity73.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2993.55%
▷ Protected methods00.00%
▷ Private methods26.45%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/active.png1.63KB1.34KB▼ 17.74%
css/images/inactive.png1.58KB1.32KB▼ 16.60%