89% ipay-ghana-woocommerce

Code Review | iPay Ghana WooCommerce

WordPress plugin iPay Ghana WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: ipay-ghana-woocom...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Aug 12, 2018
  • Latest release: Apr 28, 2021
  • Number of updates: 7
  • Update frequency: every 143.4 days
  • Top authors: ipayghana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,813 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.03ms] Passed 4 tests

This is a short check of server-side resources used by iPay Ghana WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.06 ▼3.00
Dashboard /wp-admin3.38 ▲0.0749.37 ▼1.09
Posts /wp-admin/edit.php3.43 ▲0.0752.76 ▲0.38
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.42 ▼4.75
Media Library /wp-admin/upload.php3.30 ▲0.0733.53 ▼3.26

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for iPay Ghana WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.34 ▼0.012.12 ▲0.4440.09 ▼3.50
Dashboard /wp-admin2,202 ▲225.66 ▲0.0094.76 ▲7.2543.34 ▲3.41
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0239.74 ▼2.9933.97 ▼3.45
Add New Post /wp-admin/post-new.php1,530 ▲423.12 ▲0.04614.57 ▼23.2952.15 ▼6.76
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.09101.31 ▼4.0943.72 ▲0.70

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: sales, shop, sell, woo commerce, store...

ipay-ghana-woocommerce/ipay-ghana.php 62% from 13 tests

The main PHP file in "iPay Ghana WooCommerce" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ipay-ghana-woocommerce.php" instead of "ipay-ghana.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected344 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34321326
JavaScript25010
CSS1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/ipay-ghana-powered.png28.46KB8.69KB▼ 69.47%