83% art-woocommerce-order-one-click

Code Review | Art WooCommerce Order One Click

WordPress plugin Art WooCommerce Order One Click scored83%from 54 tests.

About plugin

  • Plugin page: art-woocommerce-o...
  • Plugin version: 2.4.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 9, 2019
  • Latest release: Apr 29, 2021
  • Number of updates: 41
  • Update frequency: every 19.8 days
  • Top authors: artabr (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

5,000+ active /38,657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.30ms] Passed 4 tests

A check of server-side resources used by Art WooCommerce Order One Click
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.26 ▼15.07
Dashboard /wp-admin3.31 ▲0.0050.58 ▼7.70
Posts /wp-admin/edit.php3.36 ▲0.0053.08 ▼1.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.17 ▼8.56
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▼0.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Art WooCommerce Order One Click
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.46 ▲0.092.25 ▲0.4444.11 ▼3.85
Dashboard /wp-admin2,221 ▲184.89 ▼0.94104.07 ▼12.0939.34 ▼5.76
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0138.63 ▼0.9135.76 ▼3.01
Add New Post /wp-admin/post-new.php1,526 ▼517.58 ▼5.73703.17 ▲19.9458.85 ▲5.52
Media Library /wp-admin/upload.php1,397 ▼04.23 ▲0.02101.69 ▼12.2643.21 ▼6.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/art-woocommerce-order-one-click/includes/admin/class-awooc-admin-meta-box.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/art-woocommerce-order-one-click/includes/admin/class-awooc-admin-settings.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: woocommerce, mode catalog

art-woocommerce-order-one-click/art-woo-order-one-click.php 77% from 13 tests

The main file in "Art WooCommerce Order One Click" v. 2.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "3.3.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("art-woocommerce-order-one-click.php" instead of "art-woo-order-one-click.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)

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
There were no executable files found in this plugin2,680 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP136671,0411,791
PO File1111140316
JavaScript48939311
CSS4480256
XML1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.12
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods89
▷ Static methods2730.34%
▷ Public methods8595.51%
▷ Protected methods11.12%
▷ Private methods33.37%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin