84% 10bit-paybuttons-easycard

Code Review | EasyCard Pay Buttons

WordPress plugin EasyCard 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 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 /1,097 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.25ms] Passed 4 tests

A check of server-side resources used by EasyCard Pay Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.09 ▼13.56
Dashboard /wp-admin3.34 ▲0.0347.22 ▼2.00
Posts /wp-admin/edit.php3.39 ▲0.0347.60 ▲2.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.04 ▼7.66
Media Library /wp-admin/upload.php3.26 ▲0.0337.45 ▲4.44
EasyCard Pay Buttons /wp-admin/admin.php?page=10bit_easycard_pay_buttons3.2027.94
General /wp-admin/admin.php?page=10bit3.2228.99

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for EasyCard Pay Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10114.46 ▲0.042.20 ▼0.0045.30 ▲0.05
Dashboard /wp-admin2,216 ▲285.85 ▲0.93103.03 ▼13.2175.98 ▲30.56
Posts /wp-admin/edit.php2,114 ▲251.98 ▼0.0534.47 ▼1.5030.36 ▼1.49
Add New Post /wp-admin/post-new.php1,685 ▲15222.33 ▼1.05767.02 ▲107.5756.70 ▲1.68
Media Library /wp-admin/upload.php1,410 ▲224.18 ▼0.07106.96 ▼0.1545.86 ▲3.12
EasyCard Pay Buttons /wp-admin/admin.php?page=10bit_easycard_pay_buttons8592.0325.6327.00
General /wp-admin/admin.php?page=10bit7812.0225.3122.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: easycard, paymant

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

The principal PHP file in "EasyCard Pay Buttons" v. 1.0.0 is loaded by WordPress automatically on each request
29 characters long description:
Generate EasyCard Pay Buttons

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected173 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32910125
PO File1192748

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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
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

PNG files should be compressed to save space and 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%