Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.88ms] Passed 4 tests
An overview of server-side resources used by Pay Now Button with GiyaPay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.67 ▲0.17 |
Dashboard /wp-admin | 3.33 ▼0.01 | 51.90 ▼8.52 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.01 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.29 ▼10.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.41 ▼0.70 |
GiyaPay Button /wp-admin/options-general.php?page=wp-giyapay-settings | 3.24 | 30.38 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
giyapay_now_settings_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pay Now Button with GiyaPay: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.34 ▼0.01 | 1.77 ▲0.17 | 44.19 ▲6.68 |
Dashboard /wp-admin | 2,201 ▲24 | 5.60 ▼0.06 | 85.33 ▼9.17 | 36.42 ▼0.14 |
Posts /wp-admin/edit.php | 2,085 ▼15 | 1.98 ▲0.00 | 34.35 ▼2.62 | 35.21 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.31 ▲0.04 | 592.30 ▼0.37 | 49.02 ▼7.75 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.17 ▼0.03 | 104.49 ▲7.54 | 42.16 ▼1.95 |
GiyaPay Button /wp-admin/options-general.php?page=wp-giyapay-settings | 955 | 2.02 | 24.17 | 30.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pay-now-button-giyapay/giyapay-settings-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pay-now-button-giyapay/giyapay-button.php:1
- > PHP Fatal error
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
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in pay-now-button-giyapay/assets to your readme.txt
pay-now-button-giyapay/register.php 92% from 13 tests
The entry point to "Pay Now Button with GiyaPay" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pay-now-button-giyapay.php" instead of "register.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin268 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 19 | 205 |
CSS | 2 | 13 | 0 | 63 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin