89% edd-coming-soon

Code Review | Easy Digital Downloads - Coming Soon

WordPress plugin Easy Digital Downloads - Coming Soon scored89%from 54 tests.

About plugin

  • Plugin page: edd-coming-soon
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2013
  • Latest release: Sep 19, 2017
  • Number of updates: 19
  • Update frequency: every 84.8 days
  • Top authors: sumobi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /14,005 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.80ms] Passed 4 tests

Server-side resources used by Easy Digital Downloads - Coming Soon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.15 ▼4.20
Dashboard /wp-admin3.36 ▲0.0652.57 ▼1.99
Posts /wp-admin/edit.php3.48 ▲0.1249.57 ▼4.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.06 ▼12.55
Media Library /wp-admin/upload.php3.29 ▲0.0642.86 ▲5.98

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads - Coming Soon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▼0.241.71 ▼0.0637.90 ▼5.92
Dashboard /wp-admin2,204 ▲275.64 ▼0.1491.75 ▼9.2643.00 ▼5.05
Posts /wp-admin/edit.php2,109 ▲92.06 ▲0.0841.31 ▲0.4336.91 ▼1.93
Add New Post /wp-admin/post-new.php1,551 ▲223.18 ▼0.17639.49 ▼72.9553.12 ▼17.14
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.00103.11 ▼6.1043.69 ▼3.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed: Please take inspiration from this readme.txt

edd-coming-soon/edd-coming-soon.php 85% from 13 tests

Analyzing the main PHP file in "Easy Digital Downloads - Coming Soon" version 1.3.3
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin474 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4186349397
PO File1212365
JavaScript11012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.33
▷ Minimum class complexity5.00
▷ Maximum class complexity35.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods29
▷ Static methods26.90%
▷ Public methods2689.66%
▷ Protected methods00.00%
▷ Private methods310.34%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected