84% simpaisa-ibft-payment-services

Code Review | Simpaisa IBFT Payment Services

WordPress plugin Simpaisa IBFT Payment Services scored84%from 54 tests.

About plugin

  • Plugin page: simpaisa-ibft-pay...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: May 24, 2022
  • Latest release: Jun 21, 2022
  • Number of updates: 12
  • Update frequency: every 2.3 days
  • Top authors: maqsoodali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Simpaisa IBFT Payment Services
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.04 ▲0.43
Dashboard /wp-admin3.31 ▲0.0065.08 ▲10.82
Posts /wp-admin/edit.php3.36 ▲0.0063.18 ▲6.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.01 ▼11.89
Media Library /wp-admin/upload.php3.23 ▲0.0040.90 ▲0.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simpaisa IBFT Payment Services
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,440 ▼1,32111.88 ▼2.502.20 ▲0.2349.45 ▲0.79
Dashboard /wp-admin2,209 ▲94.93 ▲0.06105.67 ▼6.7261.92 ▲16.51
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0139.52 ▲2.4031.37 ▼5.82
Add New Post /wp-admin/post-new.php1,532 ▼1323.35 ▲0.04623.07 ▼51.2927.31 ▼36.25
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.06105.11 ▼11.1253.40 ▲6.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simpaisa-ibft-payment-services/simpaisa-ibft-payment-service.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can look at the official readme.txt

simpaisa-ibft-payment-services/simpaisa-ibft-payment-service.php 92% from 13 tests

Analyzing the main PHP file in "Simpaisa IBFT Payment Services" version 1.0.7
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simpaisa-ibft-payment-services.php" instead of "simpaisa-ibft-payment-service.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected651 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP212422418
CSS123590
JavaScript118674
Markdown120069

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity25.50
▷ Minimum class complexity7.00
▷ Maximum class complexity44.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin