Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.52ms] Passed 4 tests
An overview of server-side resources used by Valor Pay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 32.81 ▼12.39 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.07 ▼5.04 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 49.96 ▲2.52 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.33 ▼14.33 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.92 ▲1.69 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Valor Pay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼293 | 14.30 ▲0.10 | 0.46 ▼1.24 | 18.25 ▼25.16 |
Dashboard /wp-admin | 2,195 ▲15 | 5.66 ▲0.05 | 91.32 ▼8.79 | 41.77 ▼1.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.05 | 39.19 ▲0.57 | 34.05 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.54 ▲0.19 | 674.04 ▼17.03 | 71.87 ▲21.83 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.06 | 101.81 ▲5.03 | 42.78 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/valorpos/admin/partials/wc-valorpay-admin-order-refund.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/valorpos/admin/partials/wc-valorpay-admin-failure-tracker.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: credit card, payment gateway, valor pay, payment, valor paytech
valorpos/wc-valorpay.php 77% from 13 tests
The main PHP file in "Valor Pay" ver. 7.5.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("valorpos.php" instead of "wc-valorpay.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,418 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 216 | 1,147 | 1,735 |
JavaScript | 3 | 19 | 118 | 655 |
CSS | 2 | 0 | 4 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 26.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 2 | 2.63% |
▷ Public methods | 64 | 84.21% |
▷ Protected methods | 5 | 6.58% |
▷ Private methods | 7 | 9.21% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ValorPay.png | 14.53KB | 6.50KB | ▼ 55.28% |
admin/images/valorpaytech.png | 26.78KB | 11.66KB | ▼ 56.47% |