84% easy-digital-downloads-continue-shopping

Code Review | Easy Digital Downloads - Continue Shopping

WordPress plugin Easy Digital Downloads - Continue Shopping scored 84% from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-5.7
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Mar 25, 2021
  • Number of updates: 27
  • Update frequency: every 77.3 days
  • Top authors: sdavis2702 (96.3%)NoseGraze (7.41%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,767 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.36ms] Passed 4 tests

Analyzing server-side resources used by Easy Digital Downloads - Continue Shopping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.65 ▼4.29
Dashboard /wp-admin3.32 ▲0.0140.99 ▼3.99
Posts /wp-admin/edit.php3.37 ▲0.0144.85 ▼2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.42 ▼6.90
Media Library /wp-admin/upload.php3.24 ▲0.0133.72 ▲3.46

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Digital Downloads - Continue Shopping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.23 ▼1.511.76 ▲0.0241.69 ▼9.38
Dashboard /wp-admin2,213 ▲214.88 ▼0.04110.26 ▲0.1643.52 ▼0.56
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0435.55 ▼4.5334.19 ▼2.66
Add New Post /wp-admin/post-new.php1,540 ▲723.10 ▲0.36641.10 ▲18.3557.10 ▲8.00
Media Library /wp-admin/upload.php1,392 ▲104.21 ▼0.1094.61 ▼2.1143.70 ▲2.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-digital-downloads-continue-shopping/includes/settings.php:11

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 93% from 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
5 plugin tags: checkout, ecommerce, shopping cart, easy digital downloads, edd

easy-digital-downloads-continue-shopping/edd-continue-shopping.php 85% from 13 tests

The main PHP file in "Easy Digital Downloads - Continue Shopping" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-digital-downloads-continue-shopping.php" instead of "edd-continue-shopping.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
No dangerous file extensions were detected179 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP440141177
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin