89% ipay-ghana

Code Review | iPay Ghana WordPress

WordPress plugin iPay Ghana WordPress scored89%from 54 tests.

About plugin

  • Plugin page: ipay-ghana
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Jul 10, 2019
  • Number of updates: 4
  • Update frequency: every 80.3 days
  • Top authors: ipayghana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.71ms] Passed 4 tests

A check of server-side resources used by iPay Ghana WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.75 ▼2.94
Dashboard /wp-admin3.38 ▲0.0847.73 ▼3.29
Posts /wp-admin/edit.php3.43 ▲0.0845.56 ▲2.37
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.86 ▲1.03
Media Library /wp-admin/upload.php3.30 ▲0.0836.55 ▲3.35
iPay Ghana /wp-admin/options-general.php?page=ipay-ghana-settings3.2733.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_ipay-ghana-widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for iPay Ghana WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14813.97 ▼0.408.91 ▲7.1548.07 ▲5.27
Dashboard /wp-admin2,211 ▲205.87 ▲1.0199.94 ▼1.9339.54 ▲2.05
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0340.32 ▲2.1033.52 ▼0.02
Add New Post /wp-admin/post-new.php1,521 ▼1223.27 ▼0.05654.73 ▼22.3058.36 ▲4.46
Media Library /wp-admin/upload.php1,399 ▲84.21 ▲0.0197.92 ▼2.0243.05 ▲2.31
iPay Ghana /wp-admin/options-general.php?page=ipay-ghana-settings1,0551.7223.2228.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_ipay-ghana-widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (The iPay Ghana WordPress settings panel.)
The official readme.txt might help

ipay-ghana/ipay-ghana.php 69% from 13 tests

The main file in "iPay Ghana WordPress" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")
  • Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected836 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript413762445
PHP31219318
Markdown112033
CSS22520
JSON10020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
PNG images were not found in this plugin