83% easy-digital-downloads-fat-zebra-gateway

Code Review | Easy Digital Downloads Fat Zebra Gateway

WordPress plugin Easy Digital Downloads Fat Zebra Gateway scored83%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-1.6.4
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: Jun 28, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: fatzebra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,023 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.02MB] [CPU: ▼4.24ms] Passed 4 tests

Analyzing server-side resources used by Easy Digital Downloads Fat Zebra Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.76 ▼0.29
Dashboard /wp-admin3.33 ▼0.0147.31 ▼17.71
Posts /wp-admin/edit.php3.38 ▲0.0350.29 ▲1.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.77 ▼0.82
Media Library /wp-admin/upload.php3.26 ▲0.0339.41 ▲6.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Easy Digital Downloads Fat Zebra Gateway: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.041.84 ▲0.0139.92 ▼4.35
Dashboard /wp-admin2,206 ▲184.85 ▼1.03105.90 ▼19.7642.72 ▼2.18
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.0440.61 ▲4.2338.03 ▲4.05
Add New Post /wp-admin/post-new.php1,514 ▼3017.72 ▼0.59660.37 ▲35.5453.93 ▼4.58
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.01108.34 ▲3.0647.20 ▲2.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-digital-downloads-fat-zebra-gateway/edd-fatzebra.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: australia, payment gateway, fatzebra, ecommerce, edd...

easy-digital-downloads-fat-zebra-gateway/edd-fatzebra.php 69% from 13 tests

The principal PHP file in "Easy Digital Downloads Fat Zebra Gateway" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-digital-downloads-fat-zebra-gateway.php" instead of "edd-fatzebra.php")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12333118
Markdown114023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected