78% moneybookers-merchant-gateway-for-eshop

Code Review | Moneybookers Gateway For eShop

WordPress plugin Moneybookers Gateway For eShop scored 78% from 54 tests.

About plugin

  • Plugin page: moneybookers-merc...
  • Plugin version: 0.0.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: May 27, 2014
  • Number of updates: 67
  • Update frequency: every 5.9 days
  • Top authors: lchrajkumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,307 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.00MB] [CPU: ▼3.62ms] Passed 4 tests

An overview of server-side resources used by Moneybookers Gateway For eShop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.76 ▼6.55
Dashboard /wp-admin3.31 ▲0.0044.79 ▼2.61
Posts /wp-admin/edit.php3.36 ▲0.0045.97 ▼2.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.92 ▲4.27
Media Library /wp-admin/upload.php3.23 ▲0.0032.18 ▼2.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Moneybookers Gateway For eShop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.15 ▼1.154.64 ▲2.2742.23 ▲1.20
Dashboard /wp-admin2,209 ▲305.84 ▼0.04107.75 ▼4.6444.86 ▲2.33
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0140.32 ▲2.0735.97 ▲1.29
Add New Post /wp-admin/post-new.php1,514 ▼1917.55 ▼3.80604.40 ▲8.3747.17 ▼5.53
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0299.73 ▼3.3042.19 ▼3.94

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/moneybookers-merchant-gateway-for-eshop/moneybookers-class.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/moneybookers-merchant-gateway-for-eshop/moneybookers-mg.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/moneybookers-merchant-gateway-for-eshop/ipn.php:8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/moneybookers-merchant-gateway-for-eshop/ipn.php on line 7

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Full Checkout Form With Non Registered/Registered User Of Skrill.), #2 (Full Signup Form Of Moneybookers For Unregistered User At Moneybookers, to proceed for instant signup & doing payment for the chosen product.), #3 (Login Form For Registered User of Moneybookers Based On Email Provided in Checkout Form of eShop Store To Make the instant Payment for the product chosen.), #4 (Payment Success & Cancellation URL Entry Fields.), #5 (Payment Page(Skrill Checkout).), #6 (Order Cancellation Page.)
Please take inspiration from this readme.txt

moneybookers-merchant-gateway-for-eshop/moneybookers-mg.php 85% from 13 tests

The main PHP file in "Moneybookers Gateway For eShop" ver. 0.0.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("moneybookers-merchant-gateway-for-eshop.php" instead of "moneybookers-mg.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected354 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP352172354

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
moneybookers.png1.66KB0.78KB▼ 52.89%