Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.03ms] Passed 4 tests
Analyzing server-side resources used by Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.46 ▼1.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.07 ▼3.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.98 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.57 ▼8.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 36.64 ▲1.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.62 ▼0.67 | 1.86 ▲0.15 | 39.02 ▼4.48 |
Dashboard /wp-admin | 2,215 ▲27 | 4.84 ▼0.07 | 110.05 ▲0.53 | 41.73 ▼4.06 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.04 | 40.17 ▲0.99 | 35.66 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 19.47 ▼3.57 | 595.74 ▼79.44 | 62.48 ▲4.51 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.24 ▲0.02 | 96.49 ▼3.02 | 42.78 ▲0.18 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/mcxe-checkout.php
- 5× 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-filesystem-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/payment_gateway.php on line 3
- > PHP Notice
Undefined index: token in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/mcxe-checkout.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/payment_gateway.php on line 3
- > PHP Notice
Undefined index: go in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/mcxe-checkout.php on line 17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-filesystem-base.php): failed to open stream: No such file or directory in wp-content/plugins/wc-ja-ja-pagamentos-multicaixa-express/payment_gateway.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (20 tag instead of maximum 10)
wc-ja-ja-pagamentos-multicaixa-express/mcxe-woocommerce.php 77% from 13 tests
The main PHP script in "Já-Já Pagamentos for WooCommerce - Payment with MULTICAIXA Express" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-ja-ja-pagamentos-multicaixa-express.php" instead of "mcxe-woocommerce.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin412 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 79 | 30 | 412 |
PHP code Passed 2 tests
A short 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.21 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin