89% easy-digital-downloads-payment-icons-widget

Code Review | Easy Digital Downloads - Payment Icons Widget

WordPress plugin Easy Digital Downloads - Payment Icons Widget scored 89% from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2015
  • Latest release: Mar 21, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: section214 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,368 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.23ms] Passed 4 tests

This is a short check of server-side resources used by Easy Digital Downloads - Payment Icons Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.82 ▼7.72
Dashboard /wp-admin3.32 ▲0.0244.62 ▼4.84
Posts /wp-admin/edit.php3.37 ▲0.0245.88 ▼3.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.84 ▼0.97
Media Library /wp-admin/upload.php3.24 ▲0.0236.54 ▲2.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Digital Downloads - Payment Icons Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.26 ▼1.111.66 ▼0.2241.34 ▼0.75
Dashboard /wp-admin2,210 ▲195.80 ▲0.8897.45 ▼2.2240.36 ▼4.17
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0740.97 ▲1.6734.61 ▼0.92
Add New Post /wp-admin/post-new.php1,537 ▲2323.38 ▲5.80651.04 ▼29.7153.41 ▼2.93
Media Library /wp-admin/upload.php1,395 ▲74.32 ▲0.1799.29 ▼31.7343.66 ▼7.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_edd_payment_icons_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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)
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

easy-digital-downloads-payment-icons-widget/edd-payment-icons-widget.php 85% from 13 tests

"Easy Digital Downloads - Payment Icons Widget" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-digital-downloads-payment-icons-widget.php" instead of "edd-payment-icons-widget.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin178 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP380163178

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.23
Average class complexity6.67
▷ Minimum class complexity4.00
▷ Maximum class complexity12.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected