94% 10bit-paybuttons-pelecard

Code Review | Pelecard Pay Buttons

WordPress plugin Pelecard Pay Buttons scored 94% from 54 tests.

About plugin

  • Plugin page: 10bit-paybuttons-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9.1
  • WordPress version: 5.9.2
  • First release: Jul 14, 2014
  • Latest release: Jul 17, 2014
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: tzvir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 937 total downloads

Benchmarks

Plugin footprint Passed 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.04MB] [CPU: ▼299.73ms] Passed 4 tests

Analyzing server-side resources used by Pelecard Pay Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0655.61 ▲4.40
Dashboard /wp-admin3.47 ▲0.0634.56 ▲1.82
Posts /wp-admin/edit.php3.70 ▲0.0638.12 ▲0.61
Add New Post /wp-admin/post-new.php6.94 ▼0.0390.51 ▼1,201.22
Media Library /wp-admin/upload.php3.35 ▲0.0623.35 ▼0.11
pelecard Pay Buttons /wp-admin/admin.php?page=10bit_pelecard_pay_buttons3.3026.75
General /wp-admin/admin.php?page=10bit3.3221.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Pelecard Pay Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3715.62 ▼0.386.70 ▲0.762.38 ▲0.39
Dashboard /wp-admin2,906 ▲526.21 ▲0.01117.53 ▼15.83172.33 ▲16.71
Posts /wp-admin/edit.php2,713 ▲193.12 ▼0.1068.62 ▲5.99142.17 ▼1.15
Add New Post /wp-admin/post-new.php1,687 ▲2618.56 ▲0.88395.38 ▼26.27189.04 ▲36.17
Media Library /wp-admin/upload.php1,726 ▲345.52 ▼0.02127.50 ▼12.57214.64 ▲28.87
pelecard Pay Buttons /wp-admin/admin.php?page=10bit_pelecard_pay_buttons1,4242.5156.27124.92
General /wp-admin/admin.php?page=10bit9832.3852.5989.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=10bit_pelecard_pay_buttons
    • > Notice in wp-content/plugins/10bit-paybuttons-pelecard/10bit-pelecard-paybuttons-options.php+75
    Undefined variable: message

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: pelecard, paymant

10bit-paybuttons-pelecard/10bit-paybuttons-pelecard.php Passed 13 tests

The main file in "Pelecard Pay Buttons" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Generate Pelecard Pay Buttons

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
Everything looks great! No dangerous files found in this plugin332 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35120258
PO File1273174

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/10bit16x16.png0.72KB0.79KB0.00%