89% easy-digital-downloads-putler-connector

Code Review | Putler Connector for Easy Digital Downloads

WordPress plugin Putler Connector for Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 3.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Jun 20, 2023
  • Number of updates: 45
  • Update frequency: every 78.4 days
  • Top authors: putler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.91ms] Passed 4 tests

Server-side resources used by Putler Connector for Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.31 ▼3.59
Dashboard /wp-admin3.33 ▲0.0340.98 ▼5.48
Posts /wp-admin/edit.php3.38 ▲0.0350.09 ▲4.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.99 ▼9.43
Media Library /wp-admin/upload.php3.25 ▲0.0236.05 ▼1.14

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
_eddpc_activation_redirect
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Putler Connector for Easy Digital Downloads: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.26 ▼1.051.69 ▼0.5041.07 ▼1.17
Dashboard /wp-admin2,215 ▲244.87 ▼1.04112.35 ▲11.6445.19 ▲1.20
Posts /wp-admin/edit.php2,094 ▲52.06 ▲0.0734.99 ▲0.4332.07 ▼4.92
Add New Post /wp-admin/post-new.php1,523 ▲923.59 ▲5.74677.96 ▼12.8656.43 ▲1.44
Media Library /wp-admin/upload.php1,394 ▲64.24 ▲0.0498.74 ▼8.4541.98 ▼3.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • _eddpc_activation_redirect
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

easy-digital-downloads-putler-connector/edd-putler-connector.php 92% from 13 tests

"Putler Connector for Easy Digital Downloads" version 3.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-digital-downloads-putler-connector.php" instead of "edd-putler-connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,935 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43216151,935

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.79
Average class complexity174.67
▷ Minimum class complexity8.00
▷ Maximum class complexity405.00
Average method complexity8.34
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods71
▷ Static methods11.41%
▷ Public methods6388.73%
▷ Protected methods00.00%
▷ Private methods811.27%
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 are no PNG files in this plugin