90% aplus-webpay-nigeria

Code Review | APLUS Interswitch Nigeria WebPAY

WordPress plugin APLUS Interswitch Nigeria WebPAY scored90%from 54 tests.

About plugin

  • Plugin page: aplus-webpay-nigeria
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-4.8.6
  • WordPress version: 6.3.1
  • First release: Jun 2, 2018
  • Latest release: Jun 2, 2018
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: belloosa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /803 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.35ms] Passed 4 tests

An overview of server-side resources used by APLUS Interswitch Nigeria WebPAY
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.08 ▼1.62
Dashboard /wp-admin3.41 ▲0.0745.67 ▼17.58
Posts /wp-admin/edit.php3.52 ▲0.1746.31 ▲1.25
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.04 ▲0.56
Media Library /wp-admin/upload.php3.33 ▲0.1035.39 ▲2.14

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for APLUS Interswitch Nigeria WebPAY
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼0.951.99 ▲0.3240.68 ▲3.41
Dashboard /wp-admin2,209 ▲235.91 ▲0.97106.47 ▼0.4348.13 ▲7.76
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0139.77 ▲1.7135.92 ▲0.41
Add New Post /wp-admin/post-new.php1,542 ▲918.19 ▼4.97605.54 ▼100.4756.25 ▼0.98
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0394.12 ▼4.7941.17 ▼5.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt might help

aplus-webpay-nigeria/aplus-webpay-nigeria.php Passed 13 tests

The primary PHP file in "APLUS Interswitch Nigeria WebPAY" version 1.0.0 is used by WordPress to initiate all plugin functionality
137 characters long description:
The A+ Interswitch WebPAY Plugin plugin facilitates processing of VISA, Mastercard and Verve cards through the Interswitch WebPAY portal.

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 plugin678 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1175127678

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin