84% easy-quick-order

Code Review | Easy Quick Order

WordPress plugin Easy Quick Order scored84%from 54 tests.

About plugin

  • Plugin page: easy-quick-order
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: May 12, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ezy9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /416 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.58ms] Passed 4 tests

A check of server-side resources used by Easy Quick Order
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.88 ▼2.75
Dashboard /wp-admin3.36 ▲0.0546.72 ▼2.09
Posts /wp-admin/edit.php3.41 ▲0.0548.47 ▼0.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.01 ▼1.01
Media Library /wp-admin/upload.php3.28 ▲0.0534.71 ▼0.46

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Quick Order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.161.93 ▲0.2642.56 ▲3.01
Dashboard /wp-admin2,209 ▲214.83 ▼1.07107.80 ▼4.9439.03 ▼6.25
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0440.68 ▲1.2238.46 ▲0.48
Add New Post /wp-admin/post-new.php1,542 ▲823.44 ▲0.37628.62 ▼56.8153.35 ▲3.09
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0398.20 ▼3.0843.57 ▼2.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-quick-order/easy-quick-order.php:31

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: passwaord generate, easy order, new customer, user generate, order...

easy-quick-order/easy-quick-order.php Passed 13 tests

The main PHP file in "Easy Quick Order" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
Quickly create WooCommerce order for existing and new customers.

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 detected621 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1208335
PHP12512238
JavaScript16148

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
Constants0
▷ Global constants00.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 images were found in this plugin