68% edd-service-extended

Code Review | EDD Service Extended

WordPress plugin EDD Service Extended scored 68% from 54 tests.

About plugin

  • Plugin page: edd-service-extended
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 24, 2015
  • Number of updates: 5
  • Update frequency: every 4.8 days
  • Top authors: vapvarun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 9,019 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.16ms] Passed 4 tests

Analyzing server-side resources used by EDD Service Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.39 ▼5.34
Dashboard /wp-admin3.31 ▲0.0044.62 ▼6.98
Posts /wp-admin/edit.php3.36 ▲0.0044.07 ▼7.08
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.26 ▲7.53
Media Library /wp-admin/upload.php3.23 ▲0.0035.93 ▲2.75

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_edd_dashboard_message
New WordPress options
edd_message_db_version
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

EDD Service Extended: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.45 ▲0.041.67 ▼0.3039.80 ▼3.87
Dashboard /wp-admin2,203 ▲185.85 ▼0.0394.83 ▼6.0638.67 ▼4.89
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0333.27 ▼7.2534.21 ▼1.19
Add New Post /wp-admin/post-new.php1,542 ▲818.35 ▼4.62588.08 ▼73.5554.87 ▼0.24
Media Library /wp-admin/upload.php1,388 ▲64.32 ▲0.1392.33 ▼5.2541.06 ▼0.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_edd_dashboard_message
  • Zombie WordPress options detected upon uninstall: 7 options
    • edd_message_db_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/edd-service-extended/edd-message.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-service-extended/includes/add-custom-info-field-front.php:94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-service-extended/includes/admin/add-custom-info-field.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (After activation a metabox (Initial Message/ Requirement) will be added to the ‘Add Downloads’ admin form, This message will be used as initial message of the conversation on purchasing any service), #2 (If “Easy Digital Downloads Frontend Submissions” plugin is used for multi vendors store then (Initial Message/ Requirement) input box will automatically get added to the form.), #3 (To display the form in the front end use shortcode [add_user_comment_edd] in the page ‘Payment confirmation’ already created by the Easy Digital Downloads plugin.)
You can take inspiration from this readme.txt

edd-service-extended/edd-message.php 92% from 13 tests

The main file in "EDD Service Extended" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edd-service-extended.php" instead of "edd-message.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected602 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP48889453
CSS121116
JavaScript241531
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot04.png61.97KB22.40KB▼ 63.85%
screenshot03.png28.87KB10.25KB▼ 64.50%
screenshot01.png70.88KB23.22KB▼ 67.24%
screenshot02.png43.43KB12.75KB▼ 70.64%