83% payzaty

Code Review | Payzaty

WordPress plugin Payzaty scored83%from 54 tests.

About plugin

  • Plugin page: payzaty
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 20, 2021
  • Latest release: May 12, 2022
  • Number of updates: 13
  • Update frequency: every 14.0 days
  • Top authors: payzaty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.44ms] Passed 4 tests

A check of server-side resources used by Payzaty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.24 ▼3.53
Dashboard /wp-admin3.31 ▼0.0445.41 ▼15.16
Posts /wp-admin/edit.php3.36 ▲0.0048.08 ▲1.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.84 ▼7.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.72 ▲0.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Payzaty
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.33 ▲0.181.74 ▲0.1248.48 ▲5.13
Dashboard /wp-admin2,195 ▲155.57 ▼0.0889.42 ▲5.4836.19 ▼2.24
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0041.32 ▲6.3538.07 ▲0.76
Add New Post /wp-admin/post-new.php1,535 ▲923.14 ▼0.28663.03 ▲27.8752.02 ▲6.14
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.0794.51 ▼3.0642.93 ▼3.24

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/payzaty/payzaty.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Contributors: Plugin contributors not specified
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

payzaty/payzaty.php Passed 13 tests

"Payzaty" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Payzaty WooCommerce plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected316 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP783314260
PO File1172156

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.60
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods27
▷ Static methods27.41%
▷ Public methods2488.89%
▷ Protected methods00.00%
▷ Private methods311.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/payzaty-logo.png2.80KB2.03KB▼ 27.55%
assets/screenshot-1.png17.36KB8.88KB▼ 48.86%