84% edd-pdf-invoices-bulk-download

Code Review | EDD - PDF Invoice Bulk Downloader

WordPress plugin EDD - PDF Invoice Bulk Downloader scored84%from 54 tests.

About plugin

  • Plugin page: edd-pdf-invoices-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: May 21, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: stracker.phil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.71ms] Passed 4 tests

Analyzing server-side resources used by EDD - PDF Invoice Bulk Downloader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.38 ▼5.04
Dashboard /wp-admin3.34 ▼0.0144.02 ▼18.84
Posts /wp-admin/edit.php3.39 ▲0.0347.59 ▲4.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.87 ▼14.99
Media Library /wp-admin/upload.php3.26 ▲0.0337.89 ▲6.82

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

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

Browser metrics Passed 4 tests

Checking browser requirements for EDD - PDF Invoice Bulk Downloader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.101.64 ▲0.0439.38 ▼3.75
Dashboard /wp-admin2,206 ▲185.88 ▼0.02108.88 ▼14.1236.68 ▼9.28
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0138.80 ▲4.4335.76 ▼0.64
Add New Post /wp-admin/post-new.php1,535 ▲2122.92 ▲5.36602.33 ▼15.0352.01 ▼0.31
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.0196.07 ▼2.5242.35 ▼1.41

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/edd-pdf-invoices-bulk-download/plugin.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: digital downloads, edd invoices, edd invoice, easy digital downloads, edd...

edd-pdf-invoices-bulk-download/plugin.php 92% from 13 tests

The main PHP script in "EDD - PDF Invoice Bulk Downloader" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("edd-pdf-invoices-bulk-download.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15488176
Markdown16014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin