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.00MB] [CPU: ▼12.06ms] Passed 4 tests
This is a short check of server-side resources used by CarameloPay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.43 ▼6.45 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.53 ▼18.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.88 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.19 ▼22.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.56 ▲2.02 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CarameloPay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.40 | 1.77 ▼0.19 | 44.47 ▲0.75 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.81 | 105.62 ▼4.70 | 42.07 ▲6.35 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.04 | 38.78 ▼0.72 | 35.41 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,522 ▼6 | 23.11 ▼0.13 | 646.77 ▲38.27 | 70.64 ▲14.65 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.00 | 96.97 ▼14.12 | 44.03 ▼2.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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: order in wp-content/plugins/caramelopay/view/thankyou.php on line 1
- > PHP Notice
Trying to get property 'status' of non-object in wp-content/plugins/caramelopay/view/thankyou.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caramelopay/include/Settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/caramelopay/CarameloPay_Credit.php:7
- > PHP Notice
Undefined variable: order in wp-content/plugins/caramelopay/view/thankyou.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/caramelopay/view/options.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/caramelopay/CarameloPay_Pix.php:7
- > PHP Notice
Trying to get property 'status' of non-object in wp-content/plugins/caramelopay/view/thankyou.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/caramelopay/view/credit_form.php:1
- > PHP Notice
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: carto, pix, cartao de credito
caramelopay/index.php 92% from 13 tests
This is the main PHP file of "CarameloPay" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("caramelopay.php" instead of "index.php")
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 plugin666 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 130 | 66 | 652 |
CSS | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/caramelo-icon.png | 0.43KB | 0.29KB | ▼ 32.80% |
assets/screenshot-3.png | 34.74KB | 13.78KB | ▼ 60.32% |
assets/logo.png | 30.54KB | 17.10KB | ▼ 43.99% |
assets/screenshot-1.png | 29.80KB | 9.60KB | ▼ 67.78% |
assets/screenshot-2.png | 43.79KB | 14.37KB | ▼ 67.18% |