89% payment-gateway-easy-digital-downloads-shmart

Code Review | Shmart Payment Gateway for Easy Digital Downloads

WordPress plugin Shmart Payment Gateway for Easy Digital Downloads scored 89% from 54 tests.

About plugin

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,048 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.89ms] Passed 4 tests

Analyzing server-side resources used by Shmart Payment Gateway for Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.47 ▼4.12
Dashboard /wp-admin3.38 ▲0.0846.02 ▼10.58
Posts /wp-admin/edit.php3.49 ▲0.1449.31 ▲3.38
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.84 ▼8.23
Media Library /wp-admin/upload.php3.30 ▲0.0739.04 ▲4.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Shmart Payment Gateway for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7414.73 ▲0.331.77 ▼0.1539.37 ▼5.13
Dashboard /wp-admin2,218 ▲305.85 ▲0.99105.62 ▼8.4841.12 ▼12.88
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0438.55 ▲1.6236.51 ▲1.75
Add New Post /wp-admin/post-new.php1,523 ▼1017.63 ▼5.51676.16 ▲13.3256.05 ▼0.31
Media Library /wp-admin/upload.php1,397 ▲94.20 ▼0.04101.02 ▲6.6846.11 ▼1.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Requires at least: Version format is invalid
The official readme.txt might help

payment-gateway-easy-digital-downloads-shmart/edd-shmart.php 85% from 13 tests

This is the main PHP file of "Shmart Payment Gateway for Easy Digital Downloads" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("payment-gateway-easy-digital-downloads-shmart.php" instead of "edd-shmart.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected376 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112188376

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.33
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin