89% epaybg-payments

Code Review | EPay.bg Payments

WordPress plugin EPay.bg Payments scored89%from 54 tests.

About plugin

  • Plugin page: epaybg-payments
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2015
  • Latest release: Feb 3, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: vloo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by EPay.bg Payments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.91 ▼3.29
Dashboard /wp-admin3.32 ▼0.0346.10 ▼19.14
Posts /wp-admin/edit.php3.37 ▲0.0146.60 ▼1.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.87 ▼20.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.31 ▲0.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

EPay.bg Payments: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.49 ▼0.251.74 ▼0.3440.94 ▼3.22
Dashboard /wp-admin2,209 ▲214.88 ▼0.9498.65 ▼20.3538.95 ▼5.00
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0039.69 ▲1.1936.76 ▲4.32
Add New Post /wp-admin/post-new.php1,514 ▼517.52 ▼5.75690.15 ▲11.3261.72 ▲3.82
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0297.11 ▼6.2546.06 ▼5.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === epaybg-payments === )
Please take inspiration from this readme.txt

epaybg-payments/epay-payments.php 92% from 13 tests

"EPay.bg Payments" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("epaybg-payments.php" instead of "epay-payments.php")

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 detected98 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2283269
PO File15829

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin