78% itech-quick-order

Code Review | iTech Quick Order

WordPress plugin iTech Quick Order scored78%from 54 tests.

About plugin

  • Plugin page: itech-quick-order
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 23, 2021
  • Latest release: Aug 23, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: itechtheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.09ms] Passed 4 tests

An overview of server-side resources used by iTech Quick Order
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1039.24 ▼3.71
Dashboard /wp-admin3.40 ▲0.1050.76 ▼1.06
Posts /wp-admin/edit.php3.51 ▲0.1651.01 ▲0.89
Add New Post /wp-admin/post-new.php6.00 ▲0.1297.77 ▼0.49
Media Library /wp-admin/upload.php3.32 ▲0.1039.97 ▲5.16

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

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

Browser metrics Passed 4 tests

Checking browser requirements for iTech Quick Order
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.58 ▼0.808.22 ▲6.1542.15 ▼3.46
Dashboard /wp-admin2,210 ▲254.91 ▼1.05108.54 ▲1.6441.42 ▲0.93
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0541.83 ▲6.1435.79 ▲1.63
Add New Post /wp-admin/post-new.php1,518 ▼417.36 ▼5.80656.71 ▼3.6356.63 ▲0.26
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0395.40 ▼8.8641.88 ▼5.22

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/itech-quick-order/public/partials/itqo-public-display.php
    • > /wp-content/plugins/itech-quick-order/admin/partials/itqo-admin-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/itech-quick-order/admin/class-itqo-admin.php:121

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 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Quick Order Page) image missing
You can take inspiration from this readme.txt

itech-quick-order/itqo.php 85% from 13 tests

The main file in "iTech Quick Order" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("itech-quick-order.php" instead of "itqo.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected793 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12143525409
CSS31916330
JavaScript3105554

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions11
▷ Named functions654.55%
▷ Anonymous functions545.45%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected