99% easy-digital-downloads-pantheon-compat

Code Review | Easy Digital Downloads - Pantheon Compat

WordPress plugin Easy Digital Downloads - Pantheon Compat scored 99% from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 5.8.1
  • First release: May 9, 2015
  • Latest release: May 9, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: section214 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,409 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼143.40ms] Passed 4 tests

Analyzing server-side resources used by Easy Digital Downloads - Pantheon Compat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1234.87 ▲10.59
Dashboard /wp-admin3.06 ▲0.0045.37 ▲3.59
Posts /wp-admin/edit.php3.11 ▲0.0046.27 ▲1.39
Add New Post /wp-admin/post-new.php5.42 ▼0.0195.51 ▼574.84
Media Library /wp-admin/upload.php3.00 ▲0.0033.54 ▼3.75

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Digital Downloads - Pantheon Compat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8415.86 ▲0.2410.53 ▲0.4056.13 ▲4.31
Dashboard /wp-admin2,967 ▲346.05 ▲0.13144.65 ▼14.42122.25 ▲6.16
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0066.64 ▼5.2098.23 ▲4.99
Add New Post /wp-admin/post-new.php1,683 ▲1318.73 ▼0.41382.61 ▼64.18117.64 ▼7.13
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.01163.04 ▼4.71130.08 ▲3.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP 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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: easy digital downloads, pantheon, edd

easy-digital-downloads-pantheon-compat/edd-pantheon-compat.php 85% from 13 tests

The main PHP file in "Easy Digital Downloads - Pantheon Compat" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-digital-downloads-pantheon-compat.php" instead of "edd-pantheon-compat.php")
  • 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

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 detected121 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP256138117
Markdown1204

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.50
▷ Minimum class complexity4.00
▷ Maximum class complexity11.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin