89% hypersell-cod-order-form

Code Review | HyperSell - COD Order Form for WooCommerce

WordPress plugin HyperSell - COD Order Form for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: hypersell-cod-ord...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 3
  • Update frequency: every 22.3 days
  • Top authors: volbak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /947 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.02MB] [CPU: ▼5.04ms] Passed 4 tests

An overview of server-side resources used by HyperSell - COD Order Form for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.07 ▼5.66
Dashboard /wp-admin3.33 ▼0.0147.44 ▼8.40
Posts /wp-admin/edit.php3.38 ▲0.0345.79 ▲3.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.16 ▼4.61
Media Library /wp-admin/upload.php3.25 ▲0.0334.74 ▼1.50

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for HyperSell - COD Order Form for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▼0.181.69 ▲0.1439.72 ▲2.50
Dashboard /wp-admin2,195 ▲145.53 ▼0.1883.52 ▼14.4339.70 ▼5.89
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0039.79 ▲1.7235.03 ▼3.39
Add New Post /wp-admin/post-new.php1,526 ▼023.69 ▲0.49608.96 ▼80.6250.81 ▼9.21
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0392.08 ▼5.1340.29 ▼7.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

hypersell-cod-order-form/hypersell.php 85% from 13 tests

The principal PHP file in "HyperSell - COD Order Form for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("2.9.1" instead of "4.4")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hypersell-cod-order-form.php" instead of "hypersell.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin246 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP69484246

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.28
Average class complexity5.33
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods12
▷ Static methods541.67%
▷ Public methods758.33%
▷ Protected methods00.00%
▷ Private methods541.67%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants6
▷ Global constants6100.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
No PNG files were detected