89% one-click-order-reorder

Code Review | One Click Order Re-Order

WordPress plugin One Click Order Re-Order scored 89% from 54 tests.

About plugin

  • Plugin page: one-click-order-r...
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0.0
  • WordPress version: 6.3.1
  • First release: Mar 28, 2016
  • Latest release: Jul 22, 2022
  • Number of updates: 54
  • Update frequency: every 42.8 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 25,114 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
The plugin installed gracefully, with no errors

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

Server-side resources used by One Click Order Re-Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.92 ▲6.99
Dashboard /wp-admin3.31 ▲0.0047.36 ▼3.99
Posts /wp-admin/edit.php3.36 ▲0.0048.69 ▼1.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.54 ▲2.48
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▲0.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for One Click Order Re-Order
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.065.90 ▲4.1143.02 ▼7.13
Dashboard /wp-admin2,206 ▲185.03 ▼0.83104.20 ▼15.5439.06 ▼8.80
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0139.26 ▲4.3135.94 ▲3.52
Add New Post /wp-admin/post-new.php1,536 ▲1722.99 ▼0.13597.09 ▼73.5851.97 ▼4.32
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.1094.62 ▼7.0743.98 ▲0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add a description for screenshot #9 in one-click-order-reorder/assets to your readme.txt
The official readme.txt might help

one-click-order-reorder/ced-click-n-go.php 92% from 13 tests

The principal PHP file in "One Click Order Re-Order" v. 1.1.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("one-click-order-reorder.php" instead of "ced-click-n-go.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,825 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP32702161,540
CSS53416596
JavaScript46843535
PO File16572154

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity142.00
▷ Minimum class complexity66.00
▷ Maximum class complexity218.00
Average method complexity9.81
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/not-found.png7.32KB4.40KB▼ 39.87%
assets/images/icon.png9.15KB0.80KB▼ 91.21%
assets/images/Re-order-Icon.png0.86KB0.53KB▼ 38.36%
assets/images/shopping-bag.png40.58KB21.61KB▼ 46.75%