84% securepay-for-wpjobster

Code Review | SecurePay For WPJobster

WordPress plugin SecurePay For WPJobster scored84%from 54 tests.

About plugin

  • Plugin page: securepay-for-wpj...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 31, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 22
  • Update frequency: every 34.9 days
  • Top authors: nawawijamili (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,335 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.37ms] Passed 4 tests

A check of server-side resources used by SecurePay For WPJobster
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.0049.17 ▲6.04
Dashboard /wp-admin3.57 ▲0.0052.18 ▼2.07
Posts /wp-admin/edit.php3.68 ▲0.0054.42 ▼0.84
Add New Post /wp-admin/post-new.php6.15 ▲0.0093.25 ▼11.92
Media Library /wp-admin/upload.php3.49 ▲0.0039.84 ▲1.37

Server storage [IO: ▲0.07MB] [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: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SecurePay For WPJobster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.061.90 ▲0.2645.05 ▲1.02
Dashboard /wp-admin2,192 ▲155.63 ▼0.1084.65 ▼8.0542.39 ▼5.12
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0739.14 ▼2.8135.09 ▼0.75
Add New Post /wp-admin/post-new.php1,526 ▼2417.51 ▼5.72673.68 ▲1.9756.45 ▼8.25
Media Library /wp-admin/upload.php1,400 ▲64.24 ▲0.03107.55 ▲0.6845.91 ▲1.64

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/securepay-for-wpjobster/includes/src/admin-fields.php:7

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: payment platform, payment gateway, fpx, malaysia, online banking

securepay-for-wpjobster/securepay-for-wpjobster.php 92% from 13 tests

The entry point to "SecurePay For WPJobster" version 1.0.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • 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 a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin813 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7129112813

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity37.00
▷ Minimum class complexity9.00
▷ Maximum class complexity65.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods32
▷ Static methods1134.38%
▷ Public methods2268.75%
▷ Protected methods00.00%
▷ Private methods1031.25%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants10
▷ Global constants10100.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
PNG images were not found in this plugin