84% 10bit-paybuttons-pelecard

Code Review | Pelecard Pay Buttons

WordPress plugin Pelecard Pay Buttons scored84%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: 6.3.1
  • 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 /1,157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.54ms] Passed 4 tests

An overview of server-side resources used by Pelecard Pay Buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.37 ▲3.82
Dashboard /wp-admin3.31 ▼0.0347.91 ▼13.42
Posts /wp-admin/edit.php3.36 ▲0.0145.33 ▼12.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.43 ▼28.19
Media Library /wp-admin/upload.php3.24 ▲0.0137.48 ▲5.11
General /wp-admin/admin.php?page=10bit3.2030.41
pelecard Pay Buttons /wp-admin/admin.php?page=10bit_pelecard_pay_buttons3.1830.38

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Pelecard Pay Buttons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10114.74 ▲0.412.05 ▲0.2844.47 ▲4.45
Dashboard /wp-admin2,228 ▲365.86 ▲0.92112.24 ▼0.3372.62 ▲29.84
Posts /wp-admin/edit.php2,114 ▲221.99 ▼0.0234.14 ▼11.9331.88 ▼1.96
Add New Post /wp-admin/post-new.php1,686 ▲15622.34 ▲4.23647.41 ▲12.6751.59 ▲5.88
Media Library /wp-admin/upload.php1,407 ▲164.18 ▼0.05100.71 ▲0.9861.99 ▲17.22
General /wp-admin/admin.php?page=10bit7812.0224.4129.72
pelecard Pay Buttons /wp-admin/admin.php?page=10bit_pelecard_pay_buttons1,0722.0227.2723.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: paymant, pelecard

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 | An overview of files in this plugin; executable files are not allowed
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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%