WordPress plugin senangpay scored84%from 54 tests.

About plugin

  • Plugin page: senangpay-payment...
  • Plugin version: 3.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.8.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Jan 9, 2023
  • Number of updates: 61
  • Update frequency: every 41.0 days
  • Top authors: spfaizal (62.3%)szulazri (22.95%)spsyamsudin (18.03%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /24,203 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.79ms] Passed 4 tests

A check of server-side resources used by senangpay
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.41 ▲2.41
Dashboard /wp-admin3.31 ▲0.0145.96 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0147.46 ▼0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.07 ▼10.47
Media Library /wp-admin/upload.php3.24 ▲0.0132.75 ▲1.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for senangpay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.311.60 ▼0.1640.76 ▼3.00
Dashboard /wp-admin2,203 ▲155.80 ▼0.0896.41 ▼16.7837.11 ▼5.51
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0440.93 ▲7.4437.54 ▲0.20
Add New Post /wp-admin/post-new.php1,523 ▲423.24 ▲0.09622.41 ▼53.5855.73 ▼3.86
Media Library /wp-admin/upload.php1,388 ▲64.15 ▼0.1494.67 ▼2.4141.52 ▼2.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/senangpay-payment-gateway-for-woocommerce/src/senangpay.php:6

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: online banking, malaysia, payment gateway

senangpay-payment-gateway-for-woocommerce/index.php 85% from 13 tests

"senangpay" version 3.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("senangpay-payment-gateway-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected228 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25432228

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity5.29
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin