89% payment-in-lire-gateway-2-steps-order

Code Review | Payment in-Lire Gateway 2 Steps Order

WordPress plugin Payment in-Lire Gateway 2 Steps Order scored89%from 54 tests.

About plugin

  • Plugin page: payment-in-lire-g...
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Apr 9, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: evtelwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.72ms] Passed 4 tests

A check of server-side resources used by Payment in-Lire Gateway 2 Steps Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.25 ▼2.28
Dashboard /wp-admin3.32 ▲0.0246.23 ▼1.96
Posts /wp-admin/edit.php3.38 ▲0.0248.32 ▲1.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.45 ▲0.31
Media Library /wp-admin/upload.php3.25 ▲0.0235.47 ▲1.16

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

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

Browser metrics Passed 4 tests

Payment in-Lire Gateway 2 Steps Order: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.17 ▼1.521.73 ▼0.3742.57 ▼2.70
Dashboard /wp-admin2,214 ▲264.85 ▼0.21105.32 ▼10.2642.40 ▼3.37
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0039.26 ▼0.2634.93 ▲0.81
Add New Post /wp-admin/post-new.php1,550 ▲2218.11 ▼5.27602.56 ▼36.2260.83 ▲12.46
Media Library /wp-admin/upload.php1,396 ▲84.35 ▲0.1999.40 ▲1.4840.32 ▼2.71

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

payment-in-lire-gateway-2-steps-order/payment-inlire-gateway2-steps-order.php 85% from 13 tests

The main file in "Payment in-Lire Gateway 2 Steps Order" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("payment-in-lire-gateway-2-steps-order.php" instead of "payment-inlire-gateway2-steps-order.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected578 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9147403578

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.71
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods43
▷ Static methods613.95%
▷ Public methods3990.70%
▷ Protected methods12.33%
▷ Private methods36.98%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/inlire.png5.65KB2.95KB▼ 47.84%