84% spraypay

Code Review | SprayPay - Gespreid betalen

WordPress plugin SprayPay - Gespreid betalen scored84%from 54 tests.

About plugin

  • Plugin page: spraypay
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2022
  • Latest release: Aug 13, 2023
  • Number of updates: 18
  • Update frequency: every 27.5 days
  • Top authors: tallestnl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /648 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
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.43ms] Passed 4 tests

A check of server-side resources used by SprayPay - Gespreid betalen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.11 ▼4.19
Dashboard /wp-admin3.54 ▲0.2451.05 ▼2.17
Posts /wp-admin/edit.php3.65 ▲0.3049.83 ▼3.62
Add New Post /wp-admin/post-new.php6.12 ▲0.2496.89 ▲2.79
Media Library /wp-admin/upload.php3.46 ▲0.2435.02 ▼3.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SprayPay - Gespreid betalen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.38 ▼1.051.66 ▼0.1242.24 ▼3.28
Dashboard /wp-admin2,203 ▲184.88 ▼1.06111.35 ▼3.3440.77 ▼2.66
Posts /wp-admin/edit.php2,092 ▼01.99 ▲0.0139.26 ▼3.3934.02 ▼0.32
Add New Post /wp-admin/post-new.php1,532 ▼123.18 ▼0.12637.74 ▼19.4950.11 ▼8.51
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0194.80 ▼16.0640.21 ▼7.03

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
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • spray_pay_settings

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Exception/LogicException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Loader/ArrayLoader.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Exception/SyntaxException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Exception/RuntimeException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Loader/FilesystemLoader.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Loader/InlineLoader.php:50
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Loader/CascadingLoader.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Logger/AbstractLogger.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Exception/UnknownTemplateException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/spraypay/includes/vendors/Mustache/Loader/StringLoader.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: price

spraypay/index.php 85% from 13 tests

The main PHP script in "SprayPay - Gespreid betalen" version 1.0.7 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.4" instead of "4.9")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spraypay.php" instead of "index.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 plugin2,913 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP376432,2602,909
CSS2202
JavaScript2012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.43
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces6
Traits0
Classes29
▷ Abstract classes310.34%
▷ Concrete classes2689.66%
▷ Final classes13.85%
Methods209
▷ Static methods62.87%
▷ Public methods15574.16%
▷ Protected methods157.18%
▷ Private methods3918.66%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants64
▷ Global constants00.00%
▷ Class constants64100.00%
▷ Public constants64100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin