84% simpl-pay-in-3-for-woocommerce

Code Review | Simpl Pay-in-3 for WooCommerce

WordPress plugin Simpl Pay-in-3 for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: simpl-pay-in-3-fo...
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: May 17, 2021
  • Latest release: Oct 17, 2022
  • Number of updates: 68
  • Update frequency: every 7.7 days
  • Top authors: getsimpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,021 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Simpl Pay-in-3 for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.26 ▼4.81
Dashboard /wp-admin3.33 ▲0.0346.86 ▼14.23
Posts /wp-admin/edit.php3.38 ▲0.0247.54 ▼4.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.06 ▼7.41
Media Library /wp-admin/upload.php3.25 ▲0.0234.58 ▼5.05

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simpl Pay-in-3 for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.34 ▲0.131.64 ▼0.0638.89 ▼0.31
Dashboard /wp-admin2,201 ▲275.62 ▲0.0588.80 ▼3.4939.09 ▼5.36
Posts /wp-admin/edit.php2,107 ▲102.01 ▲0.0236.03 ▲0.3538.27 ▲3.16
Add New Post /wp-admin/post-new.php1,541 ▲1518.49 ▼4.96637.80 ▼22.5563.91 ▲10.46
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.0797.11 ▼21.8741.70 ▼4.49

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

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/simpl-pay-in-3-for-woocommerce/admin/class-simpl-pay-in-3-for-woocommerce-gateway.php:22

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt might help

simpl-pay-in-3-for-woocommerce/simpl-pay-in-3-for-woocommerce.php Passed 13 tests

The principal PHP file in "Simpl Pay-in-3 for WooCommerce" v. 1.2.5 is loaded by WordPress automatically on each request
93 characters long description:
Enable your users to pay for their orders in 3 simple payments by Simpl. Easy and convenient.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,981 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP112407321,192
JavaScript163109514
CSS13836235
SVG30124
Bourne Shell11012
Markdown1404

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.62
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin