Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.53ms] Passed 4 tests
Analyzing server-side resources used by Subscription Payu Latam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.93 ▲0.91 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.83 ▼1.79 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.85 ▼6.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.65 ▼10.97 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.78 ▼3.13 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
subscription_payu_latam_spl_redirect |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Subscription Payu Latam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.70 ▼0.70 | 1.75 ▲0.01 | 40.21 ▲1.35 |
Dashboard /wp-admin | 2,215 ▲30 | 5.84 ▲0.95 | 97.86 ▼15.72 | 39.93 ▼0.85 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.07 ▲0.07 | 37.14 ▼4.45 | 34.25 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.22 ▼0.07 | 590.56 ▼72.32 | 59.27 ▼0.75 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.31 ▲0.08 | 98.10 ▼7.18 | 43.75 ▼0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- subscription_payu_latam_spl_redirect
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CommonRequestUtil' not found in wp-content/plugins/subscription-payu-latam/lib/PayU/util/RequestPaymentsUtil.php:13
- > PHP Fatal error
Uncaught Error: Class 'UrlResolver' not found in wp-content/plugins/subscription-payu-latam/lib/PayU/util/PayUSubscriptionsUrlResolver.php:12
- > PHP Fatal error
Uncaught Error: Class 'CommonRequestUtil' not found in wp-content/plugins/subscription-payu-latam/lib/PayU/util/PayUTokensRequestUtil.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Subscription_Payu_Latam_SPL' not found in wp-content/plugins/subscription-payu-latam/includes/class-subscription-payu-latam.php:9
- > PHP Fatal error
Uncaught Error: Class 'CommonRequestUtil' not found in wp-content/plugins/subscription-payu-latam/lib/PayU/util/PayUSubscriptionsRequestUtil.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/subscription-payu-latam/includes/class-gateway-subscription-payu-latam.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_enqueue_js() in wp-content/plugins/subscription-payu-latam/includes/admin/payu-settings.php:9
- > PHP Fatal error
Uncaught Error: Class 'CommonRequestUtil' not found in wp-content/plugins/subscription-payu-latam/lib/PayU/util/PayUReportsRequestUtil.php:14
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #4 (**To perform tests you must use the credentials provided by payU** [see credentials](http://developers.payulatam.com/es/sdk/sandbox.html) and [fake credit card](https://es.fakenamegenerator.com/))
subscription-payu-latam/subscription-payu-latam.php 92% from 13 tests
The primary PHP file in "Subscription Payu Latam" version 2.0.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,586 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,238 | 1,792 | 3,485 |
PO File | 5 | 294 | 317 | 836 |
JavaScript | 4 | 51 | 24 | 193 |
Markdown | 1 | 34 | 0 | 59 |
CSS | 1 | 1 | 0 | 9 |
YAML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 2 | 4.65% |
▷ Concrete classes | 41 | 95.35% |
▷ Final classes | 0 | 0.00% |
Methods | 200 | |
▷ Static methods | 135 | 67.50% |
▷ Public methods | 169 | 84.50% |
▷ Protected methods | 7 | 3.50% |
▷ Private methods | 24 | 12.00% |
Functions | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 273 | |
▷ Global constants | 1 | 0.37% |
▷ Class constants | 272 | 99.63% |
▷ Public constants | 272 | 100.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
4 PNG files occupy 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-1.png | 48.97KB | 21.62KB | ▼ 55.85% |
assets/img/logoPayU.png | 3.06KB | 2.49KB | ▼ 18.81% |
assets/img/screenshot-2.png | 117.04KB | 51.64KB | ▼ 55.87% |
assets/img/screenshot-3.png | 152.64KB | 68.68KB | ▼ 55.00% |