90% edd-external-products

Code Review | Easy Digital Downloads - External Products

WordPress plugin Easy Digital Downloads - External Products scored90%from 54 tests.

About plugin

  • Plugin page: edd-external-prod...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2015
  • Latest release: Aug 19, 2016
  • Number of updates: 5
  • Update frequency: every 142.0 days
  • Top authors: evertiro (60%)section214 (60%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Easy Digital Downloads - External Products
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.46 ▼3.27
Dashboard /wp-admin3.31 ▲0.0045.19 ▼4.50
Posts /wp-admin/edit.php3.36 ▲0.0043.48 ▼4.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.02 ▼18.63
Media Library /wp-admin/upload.php3.23 ▲0.0035.14 ▼0.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Easy Digital Downloads - External Products: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.171.75 ▼0.1044.99 ▲0.80
Dashboard /wp-admin2,209 ▲215.83 ▼0.0797.87 ▼3.5743.69 ▼2.68
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0233.47 ▼8.6135.10 ▼0.17
Add New Post /wp-admin/post-new.php1,534 ▼822.76 ▲4.41655.37 ▲0.5951.35 ▼12.64
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.1494.19 ▼2.9540.95 ▼5.08

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

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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
6 plugin tags: third party, easy digital downloads, remote, redirect, external...

edd-external-products/edd-external-products.php Passed 13 tests

The entry point to "Easy Digital Downloads - External Products" version 1.1.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Adds a robust third-party product system to Easy Digital Downloads

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin142 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP464151142

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.50
▷ Minimum class complexity4.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin