89% arlen-woo-freecharge

Code Review | Gateway for Freecharge on WooCommerce

WordPress plugin Gateway for Freecharge on WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: arlen-woo-freecharge
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Nov 6, 2021
  • Number of updates: 3
  • Update frequency: every 120.0 days
  • Top authors: saiarlen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /829 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Gateway for Freecharge on WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.91 ▼7.50
Dashboard /wp-admin3.38 ▲0.0756.49 ▲1.30
Posts /wp-admin/edit.php3.49 ▲0.1347.59 ▼2.31
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.18 ▲3.41
Media Library /wp-admin/upload.php3.30 ▲0.0740.03 ▲0.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Gateway for Freecharge on WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.19 ▼1.561.69 ▼0.2940.18 ▼6.52
Dashboard /wp-admin2,221 ▲184.87 ▼0.06117.73 ▲8.8044.28 ▲4.49
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0135.77 ▼0.8934.01 ▼5.28
Add New Post /wp-admin/post-new.php1,550 ▲523.14 ▼0.15639.88 ▼51.1866.61 ▲12.84
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.04100.31 ▼19.9356.79 ▲7.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

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 90% 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: ecommerce, woocommerce, freecharge, payments, gateway

arlen-woo-freecharge/arlen-woo-freecharge.php 77% from 13 tests

The main PHP script in "Gateway for Freecharge on WooCommerce" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin464 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP288104389
PO File1253075

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods738.89%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 were not PNG files found in your plugin