84% order-editing-for-easy-digital-downloads

Code Review | Order Editing for Easy Digital Downloads

WordPress plugin Order Editing for Easy Digital Downloads scored84%from 54 tests.

About plugin

  • Plugin page: order-editing-for...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2023
  • Latest release: Jul 6, 2023
  • Number of updates: 3
  • Update frequency: every 11.0 days
  • Top authors: annaqq (66.67%)aspengrovestudios (66.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Order Editing for Easy Digital Downloads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.21 ▼4.84
Dashboard /wp-admin3.31 ▼0.0349.76 ▼19.18
Posts /wp-admin/edit.php3.36 ▲0.0152.18 ▼2.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.89 ▼7.02
Media Library /wp-admin/upload.php3.23 ▲0.0139.62 ▲5.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Order Editing for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.241.72 ▼0.2244.01 ▼3.25
Dashboard /wp-admin2,198 ▲185.63 ▲0.0183.71 ▼15.0839.26 ▼3.17
Posts /wp-admin/edit.php2,103 ▲61.94 ▼0.0438.16 ▼0.9835.54 ▲1.78
Add New Post /wp-admin/post-new.php1,526 ▼223.26 ▲0.22651.47 ▼23.0260.66 ▲4.66
Media Library /wp-admin/upload.php1,397 ▼34.18 ▲0.04102.57 ▼6.4146.35 ▼1.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/order-editing-for-easy-digital-downloads/order-editing-edd.php:44

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: orders, easy digital downloads, order editing

order-editing-for-easy-digital-downloads/order-editing-edd.php 92% from 13 tests

This is the main PHP file of "Order Editing for Easy Digital Downloads" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("order-editing-for-easy-digital-downloads.php" instead of "order-editing-edd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin229 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16438229

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity8.60
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected