89% agreeme-checkboxes-for-woocommerce

Code Review | AgreeMe Checkboxes For WooCommerce

WordPress plugin AgreeMe Checkboxes For WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: agreeme-checkboxe...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 41
  • Update frequency: every 14.2 days
  • Top authors: oscomsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,306 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 gracefully, with no errors

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

Server-side resources used by AgreeMe Checkboxes For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.99 ▼2.40
Dashboard /wp-admin3.33 ▼0.0147.27 ▼15.65
Posts /wp-admin/edit.php3.44 ▲0.0945.66 ▲1.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.73 ▼11.92
Media Library /wp-admin/upload.php3.25 ▲0.0235.13 ▼1.11

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

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

Browser metrics Passed 4 tests

AgreeMe Checkboxes For WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.21 ▼0.071.70 ▲0.0043.52 ▼0.09
Dashboard /wp-admin2,195 ▲215.62 ▼0.0491.60 ▼1.4740.63 ▼3.95
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0739.55 ▲0.7338.09 ▲2.69
Add New Post /wp-admin/post-new.php1,526 ▼022.92 ▼0.27581.22 ▼50.5553.51 ▼2.02
Media Library /wp-admin/upload.php1,400 ▲64.20 ▼0.0196.91 ▼2.9440.54 ▼2.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • agrwc_enabled

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woo commerce, checkout, woocommerce

agreeme-checkboxes-for-woocommerce/agree-me-woocommerce.php 85% from 13 tests

"AgreeMe Checkboxes For WooCommerce" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("agreeme-checkboxes-for-woocommerce.php" instead of "agree-me-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,811 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP135488021,583
PO File16373166
JavaScript213862

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.46
Average class complexity23.00
▷ Minimum class complexity2.00
▷ Maximum class complexity120.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods119
▷ Static methods2621.85%
▷ Public methods10588.24%
▷ Protected methods97.56%
▷ Private methods54.20%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin