Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.62ms] Passed 4 tests
A check of server-side resources used by Simple PayU LATAM
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 44.08 ▲4.32 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.25 ▼0.65 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.94 ▼5.13 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 92.16 ▼9.91 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.11 ▲1.20 |
Settings /wp-admin/admin.php?page=sp_spl_settings | 3.34 | 35.46 |
Payment Forms /wp-admin/admin.php?page=sp_spl_payment_forms | 3.33 | 34.45 |
Records /wp-admin/admin.php?page=sp_spl_records | 3.35 | 34.01 |
About /wp-admin/admin.php?page=sp_spl_about | 3.34 | 34.56 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_simplepayulatam_trans |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple PayU LATAM
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.35 ▼0.00 | 1.81 ▲0.16 | 43.95 ▲0.39 |
Dashboard /wp-admin | 2,229 ▲55 | 5.65 ▲0.00 | 93.65 ▲3.36 | 45.05 ▲1.14 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 1.97 ▼0.04 | 34.43 ▼3.69 | 37.18 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.04 ▲0.19 | 682.84 ▲15.05 | 56.16 ▲3.06 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.21 ▼0.01 | 97.53 ▼9.94 | 41.15 ▼4.86 |
Settings /wp-admin/admin.php?page=sp_spl_settings | 856 | 2.03 | 25.97 | 31.53 |
Payment Forms /wp-admin/admin.php?page=sp_spl_payment_forms | 890 | 2.00 | 22.95 | 29.76 |
Records /wp-admin/admin.php?page=sp_spl_records | 940 | 2.04 | 24.36 | 26.89 |
About /wp-admin/admin.php?page=sp_spl_about | 887 | 2.08 | 22.84 | 26.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-payu-latam/includes/simplepayulatam.records.php on line 19
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-payu-latam/simplepayulatam.php on line 25
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-payu-latam/includes/simplepayulatam.records.php on line 19
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-payu-latam/includes/simplepayulatam.records.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-payu-latam/includes/simplepayulatam_frontend.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-payu-latam/simplepayulatam.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-payu-latam/includes/simplepayulatam_admin.php:27
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
6 plugin tags: payu latam, payu, invoices, process invoices, pay online...
simple-payu-latam/simplepayulatam.php 92% from 13 tests
The main file in "Simple PayU LATAM" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-payu-latam.php" instead of "simplepayulatam.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,360 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 234 | 551 | 2,805 |
JavaScript | 2 | 105 | 133 | 308 |
CSS | 2 | 90 | 50 | 244 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 69.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 6.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin