Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼145.14ms] Passed 4 tests
Server-side resources used by Ratapay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.19 | 43.03 ▲4.92 |
Dashboard /wp-admin | 3.26 ▲0.20 | 63.14 ▼4.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.26 | 53.49 ▼9.96 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.18 | 111.27 ▼571.09 |
Media Library /wp-admin/upload.php | 3.20 ▲0.20 | 47.45 ▲7.74 |
Setting /wp-admin/admin.php?page=ratapay_setting | 3.17 | 43.44 |
Splitter /wp-admin/admin.php?page=ratapay_splitter | 3.20 | 34.09 |
PayLink /wp-admin/admin.php?page=ratapay_paylink | 3.19 | 38.34 |
Ratapay /wp-admin/admin.php?page=ratapay_menu | 3.15 | 37.95 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_ratapay_splitter |
New WordPress options |
---|
ratapay_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for Ratapay
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,741 ▲145 | 16.31 ▲0.69 | 10.77 ▲1.77 | 50.36 ▲1.87 |
Dashboard /wp-admin | 3,032 ▲98 | 5.93 ▼0.02 | 156.13 ▼27.12 | 134.29 ▲0.20 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.73 ▲0.01 | 78.86 ▼9.95 | 111.60 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,644 ▲63 | 18.82 ▼2.60 | 438.94 ▲23.92 | 117.68 ▼1.42 |
Media Library /wp-admin/upload.php | 1,869 ▲62 | 5.05 ▲0.01 | 194.99 ▲33.54 | 139.58 ▲8.43 |
Setting /wp-admin/admin.php?page=ratapay_setting | 1,360 | 2.23 | 64.63 | 121.53 |
Splitter /wp-admin/admin.php?page=ratapay_splitter | 1,443 | 2.93 | 83.64 | 85.82 |
PayLink /wp-admin/admin.php?page=ratapay_paylink | 1,595 | 3.21 | 86.73 | 80.22 |
Ratapay /wp-admin/admin.php?page=ratapay_menu | 1,173 | 2.09 | 71.58 | 102.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ratapay_splitter
- The uninstall procedure has failed, leaving 1 option in the database
- ratapay_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ratapay_menu
- > Notice in wp-content/plugins/ratapay/ratapay.php+743
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > 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/ratapay/includes/ratapay_splitter_data_source.php on line 3
- > 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/ratapay/includes/ratapay_splitter_data_source.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ratapay/includes/ratapay_splitter_meta.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ratapay/includes/ratapay_splitter_data_source.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ratapay/includes/woocommerce_ratapay_gateway.php:355
- > 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/ratapay/includes/ratapay_paylink_data_source.php on line 3
- > 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/ratapay/includes/ratapay_paylink_data_source.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ratapay/includes/woocommerce_ratapay_gateway.php:355
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ratapay/includes/ratapay_paylink_data_source.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #5 is required in ratapay/assets to your readme.txt
ratapay/ratapay.php Passed 13 tests
The primary PHP file in "Ratapay" version 0.1.3 is used by WordPress to initiate all plugin functionality
44 characters long description:
This plugin provide integration with Ratapay
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
Good job! No executable or dangerous file extensions detected1,521 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 168 | 107 | 1,521 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ratapay-logo.png | 8.07KB | 2.20KB | ▼ 72.74% |