83% boopis-woocommerce-rfq

Code Review | Boopis WooCommerce RFQ

WordPress plugin Boopis WooCommerce RFQ scored83%from 54 tests.

About plugin

  • Plugin page: boopis-woocommerc...
  • Plugin version: 3.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 24, 2014
  • Latest release: Jun 15, 2018
  • Number of updates: 75
  • Update frequency: every 21.4 days
  • Top authors: boopis (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

100+ active /10,814 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: ▼4.27ms] Passed 4 tests

An overview of server-side resources used by Boopis WooCommerce RFQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.59 ▲5.30
Dashboard /wp-admin3.33 ▲0.0248.57 ▼2.94
Posts /wp-admin/edit.php3.38 ▲0.0247.17 ▼1.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.24 ▼15.57
Media Library /wp-admin/upload.php3.25 ▲0.0234.46 ▲2.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boopis WooCommerce RFQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.001.97 ▲0.2241.81 ▼4.99
Dashboard /wp-admin2,209 ▲185.84 ▲0.9799.99 ▼16.5040.25 ▼6.65
Posts /wp-admin/edit.php2,089 ▲212.02 ▼0.0139.36 ▲3.3034.82 ▲1.95
Add New Post /wp-admin/post-new.php1,514 ▼1117.58 ▼5.48640.15 ▼33.8351.99 ▼3.88
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0795.48 ▼1.0643.26 ▲1.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/boopis-woocommerce-rfq/templates/rfq_settings.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (27 tag instead of maximum 10)
You can take inspiration from this readme.txt

boopis-woocommerce-rfq/boopis-rfq.php 85% from 13 tests

The main file in "Boopis WooCommerce RFQ" v. 3.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("boopis-woocommerce-rfq.php" instead of "boopis-rfq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,183 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP388735102,617
JavaScript39144379
PO File18697182
CSS1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity29.91
▷ Minimum class complexity4.00
▷ Maximum class complexity102.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods94
▷ Static methods00.00%
▷ Public methods9297.87%
▷ Protected methods00.00%
▷ Private methods22.13%
Functions6
▷ Named functions6100.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
1 PNG file occupies 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/blue_ad.png78.00KB38.83KB▼ 50.21%