90% paykassa

Code Review | PayKassa

WordPress plugin PayKassa scored 90% from 54 tests.

About plugin

  • Plugin page: paykassa
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 27, 2018
  • Latest release: Jul 20, 2020
  • Number of updates: 8
  • Update frequency: every 105.8 days
  • Top authors: al5dy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.57ms] Passed 4 tests

This is a short check of server-side resources used by PayKassa
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.81 ▼12.97
Dashboard /wp-admin3.33 ▲0.0244.72 ▼2.88
Posts /wp-admin/edit.php3.38 ▲0.0246.57 ▼5.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.76 ▼9.01
Media Library /wp-admin/upload.php3.25 ▲0.0236.54 ▲4.53

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PayKassa
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.044.51 ▲2.1244.64 ▼2.01
Dashboard /wp-admin2,203 ▲125.84 ▼0.05107.01 ▼2.2040.47 ▼0.61
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0540.07 ▲3.2135.52 ▲1.67
Add New Post /wp-admin/post-new.php1,533 ▼023.39 ▲0.31664.43 ▲8.4757.39 ▲7.35
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0298.45 ▼9.1542.12 ▼3.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, paykassa, gateway, bitcoin, cryptocurrency

paykassa/paykassa.php Passed 13 tests

The principal PHP file in "PayKassa" v. 1.0.2 is loaded by WordPress automatically on each request
61 characters long description:
This plugin is the gateway for PayKassa system of WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected597 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5151215465
PO File14457132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.25
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods37
▷ Static methods410.81%
▷ Public methods3081.08%
▷ Protected methods616.22%
▷ Private methods12.70%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin