84% edd-checkout-invoice-fields

Code Review | EDD Checkout Invoice Fields

WordPress plugin EDD Checkout Invoice Fields scored84%from 54 tests.

About plugin

  • Plugin page: edd-checkout-invo...
  • Plugin version: 0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Jun 6, 2016
  • Number of updates: 20
  • Update frequency: every 0.3 days
  • Top authors: miziomon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,307 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.35ms] Passed 4 tests

Server-side resources used by EDD Checkout Invoice Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.54 ▼8.57
Dashboard /wp-admin3.34 ▲0.0447.29 ▼3.78
Posts /wp-admin/edit.php3.39 ▲0.0444.29 ▼4.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.29 ▼8.34
Media Library /wp-admin/upload.php3.27 ▲0.0434.06 ▼2.25
EDD Checkout Invoice Fields /wp-admin/options-general.php?page=options_page_slug3.2332.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for EDD Checkout Invoice Fields
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.23 ▼0.051.78 ▼0.3644.06 ▲1.18
Dashboard /wp-admin2,199 ▲225.62 ▲0.0891.89 ▼8.3237.54 ▼4.36
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0439.48 ▲2.6935.88 ▲1.31
Add New Post /wp-admin/post-new.php1,529 ▲322.95 ▼0.01646.67 ▼20.2663.86 ▲10.25
Media Library /wp-admin/upload.php1,398 ▼54.21 ▼0.04100.57 ▲1.7347.22 ▲0.98
EDD Checkout Invoice Fields /wp-admin/options-general.php?page=options_page_slug7592.0225.5928.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-checkout-invoice-fields/modules/validate-fields.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-checkout-invoice-fields/modules/required-fields.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-checkout-invoice-fields/modules/add-fields.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/edd-checkout-invoice-fields/edd-checkout-invoice-fields.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-checkout-invoice-fields/modules/view-details.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-checkout-invoice-fields/modules/save-fields.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: checkout, easy digital download, fattura, fiscalcode, iva...

edd-checkout-invoice-fields/edd-checkout-invoice-fields.php Passed 13 tests

The entry point to "EDD Checkout Invoice Fields" version 0.3.4 is a PHP file that has certain tags in its header comment area
41 characters long description:
Add invoice extra fields in checkout page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected172 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP106881131
PO File1182841

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin