78% genesis-connect-edd

Code Review | Genesis Connect for Easy Digital Downloads

WordPress plugin Genesis Connect for Easy Digital Downloads scored78%from 54 tests.

About plugin

  • Plugin page: genesis-connect-edd
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2012
  • Latest release: Feb 21, 2019
  • Number of updates: 14
  • Update frequency: every 178.2 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /8,756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Genesis Connect for Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0059.28 ▲15.32
Dashboard /wp-admin3.31 ▲0.0054.29 ▲3.00
Posts /wp-admin/edit.php3.36 ▲0.0046.49 ▼2.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.32 ▼6.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.75 ▼0.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Connect for Easy Digital Downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.181.99 ▼0.1142.70 ▼5.06
Dashboard /wp-admin2,192 ▲125.57 ▼0.1094.33 ▼1.1841.21 ▼1.91
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0233.68 ▼10.2833.13 ▼2.02
Add New Post /wp-admin/post-new.php1,535 ▼018.23 ▼0.02603.20 ▼15.8869.36 ▲9.66
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.0999.11 ▼1.0143.89 ▼0.52

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-connect-edd/lib/gcedd-template-loader.php
    • > /wp-content/plugins/genesis-connect-edd/genesis-connect-edd.php
    • > /wp-content/plugins/genesis-connect-edd/lib/gcedd-admin.php
    • > /wp-content/plugins/genesis-connect-edd/lib/gcedd-functions.php
    • > /wp-content/plugins/genesis-connect-edd/lib/gcedd-widget-areas.php
    • > /wp-content/plugins/genesis-connect-edd/lib/gcedd-frontend.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-connect-edd/templates/single-download.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-connect-edd/templates/archive-download.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-connect-edd/templates/archive-edd_download.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-connect-edd/templates/single-edd_download.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function genesis() in wp-content/plugins/genesis-connect-edd/templates/taxonomy.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

genesis-connect-edd/genesis-connect-edd.php 92% from 13 tests

This is the main PHP file of "Genesis Connect for Easy Digital Downloads" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected658 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13260613455
PO File283148203

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
No PNG files were detected