84% easy-digital-downloads-paddle-integration

Code Review | Easy Digital Downloads Paddle Integration

WordPress plugin Easy Digital Downloads Paddle Integration scored84%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-4.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Apr 8, 2015
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: easydevelopment (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,325 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.42ms] Passed 4 tests

A check of server-side resources used by Easy Digital Downloads Paddle Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.01 ▼1.31
Dashboard /wp-admin3.36 ▲0.0544.56 ▼3.22
Posts /wp-admin/edit.php3.41 ▲0.0545.66 ▼3.02
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.70 ▼2.14
Media Library /wp-admin/upload.php3.28 ▲0.0538.71 ▲6.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads Paddle Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.67 ▼0.631.57 ▼0.4346.35 ▲1.01
Dashboard /wp-admin2,206 ▲185.89 ▲0.03106.17 ▲2.7640.95 ▼2.83
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0240.91 ▼2.7436.13 ▼1.16
Add New Post /wp-admin/post-new.php1,514 ▼017.79 ▲0.30671.78 ▲50.2752.80 ▲4.55
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.00101.70 ▲0.7043.02 ▼0.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-digital-downloads-paddle-integration/edd-paddle-integration.php:44

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-digital-downloads-paddle-integration === )
You can look at the official readme.txt

easy-digital-downloads-paddle-integration/edd-paddle-integration.php 92% from 13 tests

The entry point to "Easy Digital Downloads Paddle Integration" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-digital-downloads-paddle-integration.php" instead of "edd-paddle-integration.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
Success! There were no dangerous files found in this plugin231 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1548218
Markdown12013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin