94% az-order

Code Review | AZ Order

WordPress plugin AZ Order scored 94% from 54 tests.

About plugin

  • Plugin page: az-order
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 11, 2013
  • Latest release: Apr 8, 2013
  • Number of updates: 3
  • Update frequency: every 19.0 days
  • Top authors: iv.dimova (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,656 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by AZ Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1327.43 ▲2.52
Dashboard /wp-admin3.09 ▲0.0348.63 ▲6.63
Posts /wp-admin/edit.php3.14 ▲0.0345.25 ▲0.05
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.43 ▼557.87
Media Library /wp-admin/upload.php3.03 ▲0.0328.18 ▼6.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AZ Order
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.77 ▲0.089.36 ▼0.3746.58 ▲0.41
Dashboard /wp-admin2,987 ▲566.04 ▲0.06135.87 ▼7.20119.73 ▲4.21
Posts /wp-admin/edit.php2,756 ▲172.69 ▲0.0164.98 ▲5.3686.65 ▼0.46
Add New Post /wp-admin/post-new.php1,683 ▼019.16 ▲0.63383.70 ▲16.58109.73 ▼1.05
Media Library /wp-admin/upload.php1,830 ▲235.04 ▲0.01142.24 ▼9.83117.48 ▼2.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/az-order/azpost.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/az-order/azorder-admin.php:95

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

az-order/azorder-admin.php 92% from 13 tests

The main file in "AZ Order" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("az-order.php" instead of "azorder-admin.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
Good job! No executable or dangerous file extensions detected130 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2489130

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected