90% tilopay

Code Review | Tilopay

WordPress plugin Tilopay scored90%from 54 tests.

About plugin

  • Plugin page: tilopay
  • Plugin version: 2.0.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2021
  • Latest release: Nov 28, 2023
  • Number of updates: 34
  • Update frequency: every 22.2 days
  • Top authors: hnanne (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /6,119 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
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.20ms] Passed 4 tests

This is a short check of server-side resources used by Tilopay
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.86 ▼3.08
Dashboard /wp-admin3.45 ▲0.1447.82 ▼0.66
Posts /wp-admin/edit.php3.56 ▲0.2046.93 ▼3.75
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.79 ▼9.32
Media Library /wp-admin/upload.php3.37 ▲0.1435.54 ▲3.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Tilopay: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.25 ▼0.461.63 ▼0.2337.47 ▼7.49
Dashboard /wp-admin2,198 ▲215.60 ▼0.0693.03 ▼0.7841.57 ▼1.42
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0039.34 ▲2.1637.35 ▲3.94
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.18621.91 ▲25.6561.39 ▲9.65
Media Library /wp-admin/upload.php1,403 ▲34.33 ▲0.1895.42 ▼0.9241.01 ▼1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Modal Payment), #2 (Settings Payment)
The official readme.txt might help

tilopay/tilopay.php Passed 13 tests

"Tilopay" version 2.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Accept credit and debit cards on your WooCommerce Store

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
Success! There were no dangerous files found in this plugin6,014 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP165427532,428
PO File139979932,213
JavaScript4153174826
CSS55169320
SVG603155
Markdown117048
JSON20024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity56.62
▷ Minimum class complexity1.00
▷ Maximum class complexity306.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods88
▷ Static methods1820.45%
▷ Public methods8697.73%
▷ Protected methods00.00%
▷ Private methods22.27%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tilopay_color.png15.06KB15.03KB0.19%
assets/images/flat_icon_tilopay.png3.19KB3.16KB▼ 0.71%
assets/images/no_image.png6.75KB2.56KB▼ 62.11%
assets/images/iconoplugin.png22.84KB8.48KB▼ 62.87%
assets/images/minicuotas.png57.69KB3.70KB▼ 93.59%