Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.48MB] [CPU: ▼6.65ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Parcelas
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 39.60 ▼4.82 |
Dashboard /wp-admin | 3.82 ▲0.47 | 50.78 ▼13.94 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 51.81 ▲3.56 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 86.92 ▼11.41 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 38.45 ▲4.56 |
Parcelas /wp-admin/admin.php?page=fswp | 3.71 | 35.00 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Parcelas
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.04 ▼0.06 | 1.67 ▲0.05 | 40.31 ▼2.83 |
Dashboard /wp-admin | 2,201 ▲21 | 5.49 ▼0.16 | 87.93 ▼9.04 | 40.46 ▼5.50 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 1.97 ▼0.05 | 38.90 ▲2.47 | 37.30 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.45 ▲0.05 | 605.14 ▼57.57 | 53.34 ▼2.78 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▲0.01 | 100.28 ▲0.41 | 42.65 ▼2.34 |
Parcelas /wp-admin/admin.php?page=fswp | 1,990 | 2.14 | 25.69 | 37.84 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woocommerce-parcelas/public/styles/public.php
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\DefinitionContainerInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/Container.php:15
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\ServiceProvider\\ServiceProviderInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/ServiceProvider/BootableServiceProviderInterface.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/ServiceProvider/ServiceProviderInterface.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/Inflector/Inflector.php:11
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/ServiceProvider/ServiceProviderAggregateInterface.php:10
- > PHP Fatal error
Uncaught Error: Class 'League\\Container\\Argument\\LiteralArgument' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/Argument/Literal/FloatArgument.php:9
- > PHP Fatal error
Uncaught Error: Class 'League\\Container\\Argument\\LiteralArgument' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/Argument/Literal/StringArgument.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/DefinitionContainerInterface.php:12
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\ArgumentInterface' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/Argument/DefaultValueInterface.php:7
- > PHP Fatal error
Uncaught Error: Class 'League\\Container\\Argument\\LiteralArgument' not found in wp-content/plugins/woocommerce-parcelas/vendor/league/container/src/Argument/Literal/BooleanArgument.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: in cash, financed, parcelamento, parcelas, parcelar...
woocommerce-parcelas/woocommerce-parcelas.php 92% from 13 tests
The principal PHP file in "WooCommerce Parcelas" v. 1.3.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin3,382 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 638 | 710 | 2,890 |
Markdown | 3 | 100 | 0 | 212 |
JSON | 1 | 0 | 0 | 147 |
JavaScript | 3 | 34 | 3 | 108 |
CSS | 1 | 7 | 1 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 6.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 17 | |
Traits | 3 | |
Classes | 31 | |
▷ Abstract classes | 2 | 6.45% |
▷ Concrete classes | 29 | 93.55% |
▷ Final classes | 2 | 6.90% |
Methods | 210 | |
▷ Static methods | 19 | 9.05% |
▷ Public methods | 201 | 95.71% |
▷ Protected methods | 4 | 1.90% |
▷ Private methods | 5 | 2.38% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 16 | |
▷ Global constants | 6 | 37.50% |
▷ Class constants | 10 | 62.50% |
▷ Public constants | 10 | 100.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
PNG images were not found in this plugin