90% ippopay-for-woocommerce

Code Review | Ippopay Payments

WordPress plugin Ippopay Payments scored90%from 54 tests.

About plugin

  • Plugin page: ippopay-for-wooco...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-5.6
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Aug 8, 2022
  • Number of updates: 6
  • Update frequency: every 126.0 days
  • Top authors: ippopay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Ippopay Payments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.52 ▲2.37
Dashboard /wp-admin3.38 ▲0.0843.77 ▼5.51
Posts /wp-admin/edit.php3.49 ▲0.1450.43 ▲10.48
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.81 ▼13.35
Media Library /wp-admin/upload.php3.30 ▲0.0734.78 ▼0.38

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ippopay Payments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼0.971.75 ▲0.1337.35 ▼1.67
Dashboard /wp-admin2,206 ▲205.89 ▲0.95111.27 ▼10.9843.74 ▼5.01
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0337.27 ▼9.1634.76 ▼3.97
Add New Post /wp-admin/post-new.php1,533 ▲523.16 ▲4.96651.07 ▲32.8258.91 ▲2.66
Media Library /wp-admin/upload.php1,385 ▼34.27 ▲0.0198.52 ▼8.6340.33 ▼2.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
7 plugin tags: card, upi, payments, india, tamilnadu...

ippopay-for-woocommerce/ippopay-payments.php 92% from 13 tests

The main file in "Ippopay Payments" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ippopay-for-woocommerce.php" instead of "ippopay-payments.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin446 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16596424
JavaScript10022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1152.38%
▷ Protected methods733.33%
▷ Private methods314.29%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin