89% edd-downloads-as-services

Code Review | EDD Downloads As Services

WordPress plugin EDD Downloads As Services scored89%from 54 tests.

About plugin

  • Plugin page: edd-downloads-as-...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 9, 2014
  • Latest release: Jan 5, 2021
  • Number of updates: 18
  • Update frequency: every 141.8 days
  • Top authors: sumobi (83.33%)mordauk (16.67%)NoseGraze (11.11%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /19,263 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.34ms] Passed 4 tests

An overview of server-side resources used by EDD Downloads As Services
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.53 ▼2.58
Dashboard /wp-admin3.35 ▲0.0450.84 ▲1.34
Posts /wp-admin/edit.php3.40 ▲0.0454.51 ▼1.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.48 ▼6.79
Media Library /wp-admin/upload.php3.27 ▲0.0439.73 ▲6.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for EDD Downloads As Services
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▲0.021.70 ▼0.0736.93 ▼1.22
Dashboard /wp-admin2,195 ▲185.51 ▼0.1284.58 ▼2.8040.06 ▼10.07
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0138.01 ▼1.2035.49 ▼1.48
Add New Post /wp-admin/post-new.php1,526 ▼023.77 ▲0.86606.99 ▼77.6753.59 ▲0.65
Media Library /wp-admin/upload.php1,394 ▼64.07 ▼0.18101.29 ▼7.7243.36 ▼1.01

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

edd-downloads-as-services/edd-downloads-as-services.php 92% from 13 tests

"EDD Downloads As Services" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)

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
Everything looks great! No dangerous files found in this plugin254 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP150118148
PO File32020106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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