Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼16.42ms] Passed 4 tests
Analyzing server-side resources used by PayPal Brasil para WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 37.61 ▼0.73 |
Dashboard /wp-admin | 3.54 ▲0.19 | 32.69 ▼25.19 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 38.29 ▼10.99 |
Add New Post /wp-admin/post-new.php | 5.76 ▼0.12 | 77.09 ▼23.13 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 30.74 ▼6.36 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by PayPal Brasil para WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.59 ▲0.03 | 1.95 ▲0.43 | 42.45 ▲3.62 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▼0.03 | 90.01 ▲4.40 | 47.74 ▲6.52 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.00 | 39.17 ▲4.53 | 38.08 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.12 ▲0.03 | 616.01 ▼38.42 | 54.49 ▼7.29 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.04 | 96.36 ▼3.11 | 41.55 ▼6.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/paypal-brasil-para-woocommerce/includes/views/checkout/html-paypal-iframe-br.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/paypal-brasil-para-woocommerce/includes/views/admin-options/admin-options-plus/admin-options-plus-template.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/paypal-brasil-para-woocommerce/includes/views/admin-options/admin-options-plus/admin-options-plus.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/paypal-brasil-para-woocommerce/includes/views/admin-options/admin-options-spb/admin-options-spb.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/paypal-brasil-para-woocommerce/includes/views/admin-options/admin-options-spb/admin-options-spb-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_price_format() in wp-content/plugins/paypal-brasil-para-woocommerce/includes/views/checkout/html-paypal-iframe-us.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- License uri: Invalid url: "[http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)"
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
paypal-brasil-para-woocommerce/paypal-brasil-para-woocommerce.php Passed 13 tests
The entry point to "PayPal Brasil para WooCommerce" version 1.4.9 is a PHP file that has certain tags in its header comment area
79 characters long description:
Adicione facilmente opções de pagamento do PayPal à sua loja do WooCommerce.
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 plugin6,633 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,142 | 1,694 | 5,632 |
PO File | 1 | 240 | 372 | 529 |
CSS | 6 | 32 | 6 | 334 |
JSON | 2 | 0 | 0 | 79 |
XML | 1 | 8 | 2 | 31 |
Markdown | 1 | 9 | 0 | 18 |
JavaScript | 10 | 0 | 16 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 23 | 10.31% |
▷ Public methods | 184 | 82.51% |
▷ Protected methods | 9 | 4.04% |
▷ Private methods | 30 | 13.45% |
Functions | 22 | |
▷ Named functions | 18 | 81.82% |
▷ Anonymous functions | 4 | 18.18% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 compressed PNG files occupy 0.91MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-spb.png | 24.54KB | 25.77KB | 0.00% |
assets/images/saiba-mais.png | 81.54KB | 86.59KB | 0.00% |
assets/images/banner-plus-2x.png | 324.49KB | 97.99KB | ▼ 69.80% |
assets/images/buttons/pill-silver.png | 2.02KB | 2.09KB | 0.00% |
assets/images/buttons/rect-blue.png | 1.80KB | 1.81KB | 0.00% |