Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.44ms] Passed 4 tests
An overview of server-side resources used by Simple PayU Romania
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.16 ▼4.05 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.38 ▼1.63 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.83 ▼4.77 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.62 ▼15.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.60 ▲6.15 |
Records /wp-admin/admin.php?page=sp_spr_records | 3.22 | 35.96 |
About /wp-admin/admin.php?page=sp_spr_about | 3.21 | 34.46 |
Settings /wp-admin/admin.php?page=sp_spr_settings | 3.21 | 28.99 |
Payment Forms /wp-admin/admin.php?page=sp_spr_payment_forms | 3.20 | 29.60 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_simplepayuromania_trans |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple PayU Romania
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.72 ▲0.37 | 1.93 ▲0.26 | 43.21 ▼0.35 |
Dashboard /wp-admin | 2,226 ▲46 | 5.58 ▼0.14 | 92.34 ▲1.04 | 39.75 ▼1.60 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.99 ▲0.02 | 39.41 ▲3.06 | 37.07 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.32 ▲0.20 | 693.41 ▲57.96 | 56.51 ▲6.12 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.18 ▼0.02 | 103.12 ▼4.04 | 43.54 ▼4.63 |
Records /wp-admin/admin.php?page=sp_spr_records | 936 | 2.03 | 24.99 | 28.82 |
About /wp-admin/admin.php?page=sp_spr_about | 887 | 2.27 | 22.62 | 26.62 |
Settings /wp-admin/admin.php?page=sp_spr_settings | 831 | 2.00 | 23.93 | 26.27 |
Payment Forms /wp-admin/admin.php?page=sp_spr_payment_forms | 890 | 2.00 | 25.78 | 29.46 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 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-romania/includes/simplepayuromania.records.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-payu-romania/includes/simplepayuromania_frontend.php:84
- > 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-romania/simplepayuromania.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-romania/includes/simplepayuromania.records.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-payu-romania/simplepayuromania.php:26
- > 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-romania/includes/simplepayuromania.records.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-payu-romania/includes/simplepayuromania_admin.php:27
- > PHP Warning
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 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 romania, invoices, process invoices, pay online, payu...
simple-payu-romania/simplepayuromania.php 92% from 13 tests
The entry point to "Simple PayU Romania" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-payu-romania.php" instead of "simplepayuromania.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,334 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 243 | 551 | 2,779 |
JavaScript | 2 | 105 | 133 | 308 |
CSS | 2 | 90 | 50 | 244 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected