83% zitengine-skrill-manual-payment

Code Review | Skrill Manual Payment Gateway

WordPress plugin Skrill Manual Payment Gateway scored83%from 54 tests.

About plugin

  • Plugin page: zitengine-skrill-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Aug 19, 2021
  • Number of updates: 11
  • Update frequency: every 27.6 days
  • Top authors: zitengine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,843 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.70ms] Passed 4 tests

Analyzing server-side resources used by Skrill Manual Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.94 ▼4.50
Dashboard /wp-admin3.31 ▲0.0050.23 ▲4.87
Posts /wp-admin/edit.php3.36 ▲0.0047.88 ▼0.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.33 ▼2.48
Media Library /wp-admin/upload.php3.23 ▲0.0040.53 ▲4.59

Server storage [IO: ▲0.02MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Skrill Manual Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.38 ▼1.051.78 ▼0.2344.88 ▲1.38
Dashboard /wp-admin2,203 ▲155.91 ▲1.04102.47 ▼8.9539.62 ▼0.68
Posts /wp-admin/edit.php2,089 ▼02.15 ▲0.1333.93 ▼5.3633.77 ▼1.02
Add New Post /wp-admin/post-new.php1,537 ▲423.45 ▲0.07658.26 ▼24.6075.11 ▲22.32
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.0894.17 ▼6.0744.97 ▲2.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/zitengine-skrill-manual-payment/skrill.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: The official readme.txt is a good inspiration

zitengine-skrill-manual-payment/skrill.php 69% from 13 tests

The main file in "Skrill Manual Payment Gateway" v. 1.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:
  • 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
  • Description: The description should be shorter than 140 characters (currently 205 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("zitengine-skrill-manual-payment.php" instead of "skrill.php")

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
Everything looks great! No dangerous files found in this plugin301 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28063296
JavaScript1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/skrill.png2.58KB2.01KB▼ 21.94%