83% echeck-processing-system

Code Review | eCheck Processing eCheckProcessing.com

WordPress plugin eCheck Processing eCheckProcessing.com scored83%from 54 tests.

About plugin

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /5,664 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.01MB] [CPU: ▼6.73ms] Passed 4 tests

Server-side resources used by eCheck Processing eCheckProcessing.com
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.52 ▼3.55
Dashboard /wp-admin3.31 ▼0.0442.49 ▼15.94
Posts /wp-admin/edit.php3.36 ▲0.0042.76 ▼1.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.84 ▼5.97
Media Library /wp-admin/upload.php3.23 ▲0.0033.72 ▲1.78

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by eCheck Processing eCheckProcessing.com
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.35 ▲0.001.68 ▲0.0839.63 ▼2.09
Dashboard /wp-admin2,198 ▲185.59 ▼0.0890.78 ▲2.3737.18 ▼6.60
Posts /wp-admin/edit.php2,103 ▲61.98 ▼0.0339.77 ▲3.4536.99 ▲2.16
Add New Post /wp-admin/post-new.php1,526 ▼022.93 ▼0.34678.72 ▲25.4255.24 ▼11.18
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.03101.95 ▲7.2047.14 ▲6.21

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway_eCheck' not found in wp-content/plugins/echeck-processing-system/includes/echeck.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/echeck-processing-system/includes/orderstatus.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/echeck-processing-system/gateway-echeckprocessing.php:30

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 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires php: Invalid plugin version format
You can take inspiration from this readme.txt

echeck-processing-system/gateway-echeckprocessing.php 69% from 13 tests

"eCheck Processing eCheckProcessing.com" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7.0" instead of "4.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("echeck-processing-system.php" instead of "gateway-echeckprocessing.php")
  • Domain Path: The domain path points to a folder that does not exist ("/lang/")
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin739 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3130161719
CSS11620

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin