94% 10bit-paybuttons-easycard

Code Review | EasyCard Pay Buttons

WordPress plugin EasyCard 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 15, 2014
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: tzvir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 887 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by EasyCard Pay Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0353.49 ▲0.69
Dashboard /wp-admin3.44 ▲0.0335.46 ▲1.94
Posts /wp-admin/edit.php3.67 ▲0.0337.52 ▼1.85
Add New Post /wp-admin/post-new.php6.91 ▼0.0693.18 ▼1,183.50
Media Library /wp-admin/upload.php3.33 ▲0.0325.25 ▼0.90
General /wp-admin/admin.php?page=10bit3.2923.49
EasyCard Pay Buttons /wp-admin/admin.php?page=10bit_easycard_pay_buttons3.2722.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for EasyCard Pay Buttons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲9015.83 ▲0.176.76 ▲1.102.13 ▼0.60
Dashboard /wp-admin2,920 ▲626.22 ▲0.00121.51 ▼10.06174.76 ▲12.76
Posts /wp-admin/edit.php2,700 ▲63.04 ▼0.1966.54 ▼0.36143.85 ▼6.65
Add New Post /wp-admin/post-new.php1,738 ▲2717.08 ▼4.29440.26 ▼32.64164.09 ▲2.24
Media Library /wp-admin/upload.php1,723 ▲255.56 ▲0.04126.48 ▼20.06217.32 ▲30.69
General /wp-admin/admin.php?page=10bit9792.3652.3287.50
EasyCard Pay Buttons /wp-admin/admin.php?page=10bit_easycard_pay_buttons1,1202.4953.28121.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=10bit_easycard_pay_buttons
    • > Notice in wp-content/plugins/10bit-paybuttons-easycard/10bit-easycard-paybuttons-options.php+25
    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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: easycard, paymant

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

"EasyCard Pay Buttons" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
29 characters long description:
Generate EasyCard 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
No dangerous file extensions were detected173 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File1192748

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.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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings