73% boffo

Code Review | Boffo

WordPress plugin Boffo scored73%from 54 tests.

About plugin

  • Plugin page: boffo
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.32-5.7.0
  • WordPress version: 6.3.1
  • First release: Feb 18, 2021
  • Latest release: Mar 24, 2021
  • Number of updates: 5
  • Update frequency: every 6.8 days
  • Top authors: yorkstreetlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.36ms] Passed 4 tests

An overview of server-side resources used by Boffo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.61 ▼1.66
Dashboard /wp-admin3.35 ▲0.0048.76 ▼17.74
Posts /wp-admin/edit.php3.40 ▲0.0447.57 ▼1.24
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.77 ▼12.80
Media Library /wp-admin/upload.php3.27 ▲0.0440.58 ▲6.39
Messages /wp-admin/edit.php?post_type=boffo_message3.3138.41
Boffo /wp-admin/admin.php?page=boffo3.2833.41

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Boffo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.93 ▼0.5611.91 ▲10.2440.29 ▼3.41
Dashboard /wp-admin2,237 ▲575.93 ▲0.26103.66 ▲9.6041.25 ▼0.02
Posts /wp-admin/edit.php2,142 ▲452.40 ▲0.4440.77 ▲2.9337.07 ▲1.42
Add New Post /wp-admin/post-new.php6,403 ▲4,87728.07 ▲4.91919.35 ▲236.1239.27 ▼17.53
Media Library /wp-admin/upload.php1,445 ▲484.53 ▲0.40109.35 ▼2.0449.20 ▲1.64
Messages /wp-admin/edit.php?post_type=boffo_message1,1222.3434.9729.20
Boffo /wp-admin/admin.php?page=boffo9692.6642.2532.02

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/boffo/public/partials/boffo-public-flow.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/boffo/admin/partials/boffo-admin-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boffo/blocks/boffo.php:55
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
    • > PHP Notice
      Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
    • > PHP Notice
      Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 3
    • > PHP Notice
      Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
    • > PHP Notice
      Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=boffo_message
    • > Console-api (severe) in wp-content/plugins/boffo/assets/dist/admin.js?ver=1.0.1+6:5530
    [Vue warn]: Cannot find element: #boffo-views

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === boffo === )
The official readme.txt might help

boffo/boffo.php Passed 13 tests

The entry point to "Boffo" version 1.0.1 is a PHP file that has certain tags in its header comment area
105 characters long description:
Boffo replaces your traditional contact form with an engaging experience that will delight your visitors.

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
There were no executable files found in this plugin755 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP18200271664
JavaScript381881
CSS421010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.83
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods46
▷ Static methods919.57%
▷ Public methods3576.09%
▷ Protected methods613.04%
▷ Private methods510.87%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png51.83KB14.11KB▼ 72.77%
assets/screenshot-1.png133.12KB43.17KB▼ 67.57%
assets/screenshot-3.png54.01KB15.32KB▼ 71.64%