89% edd-additional-shortcodes

Code Review | Easy Digital Downloads - Additional Shortcodes

WordPress plugin Easy Digital Downloads - Additional Shortcodes scored 89% from 54 tests.

About plugin

  • Plugin page: edd-additional-sh...
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2014
  • Latest release: Nov 3, 2022
  • Number of updates: 16
  • Update frequency: every 198.4 days
  • Top authors: cklosows (93.75%)NoseGraze (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 8,329 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.76ms] Passed 4 tests

Analyzing server-side resources used by Easy Digital Downloads - Additional Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.21 ▲0.74
Dashboard /wp-admin3.41 ▲0.1148.14 ▲1.44
Posts /wp-admin/edit.php3.53 ▲0.1750.21 ▲2.80
Add New Post /wp-admin/post-new.php5.99 ▲0.1182.96 ▼16.03
Media Library /wp-admin/upload.php3.34 ▲0.1136.15 ▲3.41

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads - Additional Shortcodes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲7114.74 ▲0.371.97 ▲0.0443.85 ▼6.88
Dashboard /wp-admin2,212 ▲274.84 ▼0.9898.28 ▼17.7337.79 ▼7.59
Posts /wp-admin/edit.php2,092 ▲32.05 ▼0.0037.47 ▼0.6437.59 ▲5.57
Add New Post /wp-admin/post-new.php1,522 ▼1223.04 ▼0.28645.19 ▼17.7554.07 ▼6.09
Media Library /wp-admin/upload.php1,394 ▲64.17 ▼0.04101.00 ▲3.9642.19 ▼1.98

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Good news, no errors were detected

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: easy digital downloads, shopping cart, conditional logic, shortcodes, landing page

edd-additional-shortcodes/edd-additional-shortcodes.php 85% from 13 tests

"Easy Digital Downloads - Additional Shortcodes" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "5.3")
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,155 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP153374141,025
JSON30074
Markdown113056

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity16.89
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1723.29%
▷ Public methods6183.56%
▷ Protected methods00.00%
▷ Private methods1216.44%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
PNG images were not found in this plugin