84% previously-order-list-for-repeat-order

Code Review | WooCommerce privious order list for repeat order

WordPress plugin WooCommerce privious order list for repeat order scored84%from 54 tests.

About plugin

  • Plugin page: previously-order-...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Aug 3, 2018
  • Latest release: Aug 3, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: komalpatel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /483 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.01MB] [CPU: ▼5.45ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce privious order list for repeat order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.44 ▼3.92
Dashboard /wp-admin3.32 ▲0.0245.56 ▼6.63
Posts /wp-admin/edit.php3.37 ▲0.0145.51 ▼2.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.40 ▲0.32
Media Library /wp-admin/upload.php3.25 ▲0.0133.03 ▼8.99

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce privious order list for repeat order
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.77 ▼0.615.23 ▲3.4544.38 ▼0.69
Dashboard /wp-admin2,209 ▲245.85 ▼0.1098.95 ▼5.0839.00 ▼4.95
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0435.72 ▼0.1132.76 ▼0.59
Add New Post /wp-admin/post-new.php1,533 ▼023.04 ▼0.30635.67 ▼60.5853.35 ▼2.19
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0295.64 ▼4.9544.36 ▲3.45

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/previously-order-list-for-repeat-order/previously-order-list-for-repeat-order.php:8

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, repeat privious order

previously-order-list-for-repeat-order/previously-order-list-for-repeat-order.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce privious order list for repeat order" version 1...
Please make the necessary changes and fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")
  • Description: Please don't use more than 140 characters for the plugin description (currently 185 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
No dangerous file extensions were detected172 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22318141
CSS11018
JavaScript11013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin