83% iamport-for-easy-digital-downloads

Code Review | iamport-for-easy-digital-downloads

WordPress plugin iamport-for-easy-digital-downloads scored 83% from 54 tests.

About plugin

  • Plugin page: iamport-for-easy-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.4
  • WordPress version: 6.3.1
  • First release: May 26, 2016
  • Latest release: Jul 12, 2021
  • Number of updates: 62
  • Update frequency: every 30.2 days
  • Top authors: movingcart (88.71%)iamport (9.68%)mymusese (4.84%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 3,306 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.07MB] [CPU: ▼2.88ms] Passed 4 tests

Analyzing server-side resources used by iamport-for-easy-digital-downloads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.78 ▼5.05
Dashboard /wp-admin3.37 ▲0.0745.60 ▼3.19
Posts /wp-admin/edit.php3.49 ▲0.1349.08 ▲0.81
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.66 ▼4.08
Media Library /wp-admin/upload.php3.30 ▲0.0734.49 ▲1.74

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for iamport-for-easy-digital-downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.74 ▼0.641.94 ▼0.2245.74 ▲3.42
Dashboard /wp-admin2,207 ▲195.79 ▲0.6995.51 ▼11.4244.94 ▲0.66
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0036.27 ▼6.0539.50 ▲4.97
Add New Post /wp-admin/post-new.php1,526 ▼1623.06 ▲4.56665.83 ▲43.6353.75 ▼6.33
Media Library /wp-admin/upload.php1,392 ▲44.29 ▲0.0798.99 ▼5.7148.14 ▲5.51

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iamport-for-easy-digital-downloads/edd-iamport-gateway.php:489
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportNormal' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-samsung.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportNormal' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-trans.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportNormal' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-kakao.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportNormal' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-naverpay.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportBase' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-subscription.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportNormal' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-card.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportBase' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/abstract/edd-iamport-normal.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EddIamportNormal' not found in wp-content/plugins/iamport-for-easy-digital-downloads/includes/edd-iamport-phone.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% 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 to be fixed:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === iamport-for-easy-digital-downloads === )
Please take inspiration from this readme.txt

iamport-for-easy-digital-downloads/edd-iamport-gateway.php 69% from 13 tests

This is the main PHP file of "iamport-for-easy-digital-downloads" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("iamport-for-easy-digital-downloads.php" instead of "edd-iamport-gateway.php")
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 91 characters long)
  • Git Repository: Please do not include Git repositories in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,977 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP113671981,616
JavaScript61832391,361

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.87
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes00.00%
Methods111
▷ Static methods00.00%
▷ Public methods8677.48%
▷ Protected methods1311.71%
▷ Private methods1210.81%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin