Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.57MB] [CPU: ▼21.21ms] Passed 4 tests
This is a short check of server-side resources used by Webgoias - Float Freeshipping Button for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.98 ▲1.52 | 51.98 ▲11.60 |
Dashboard /wp-admin | 4.51 ▲1.21 | 38.87 ▼13.33 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 40.00 ▼16.75 |
Add New Post /wp-admin/post-new.php | 4.51 ▼1.37 | 34.26 ▼57.26 |
Media Library /wp-admin/upload.php | 4.51 ▲1.29 | 36.90 ▲2.51 |
Server storage [IO: ▲8.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 456 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Webgoias - Float Freeshipping Button for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲319 | 18.48 ▲4.11 | 1.80 ▲0.27 | 45.46 ▲5.58 |
Dashboard /wp-admin | 2,474 ▲293 | 8.89 ▲3.18 | 168.58 ▲48.73 | 90.43 ▲43.59 |
Posts /wp-admin/edit.php | 2,423 ▲320 | 6.12 ▲4.12 | 82.04 ▲39.21 | 86.86 ▲46.62 |
Add New Post /wp-admin/post-new.php | 1,618 ▲90 | 19.79 ▼3.31 | 741.78 ▲72.76 | 38.02 ▼14.82 |
Media Library /wp-admin/upload.php | 1,554 ▲154 | 6.51 ▲2.27 | 106.48 ▲0.03 | 66.67 ▲20.32 |
Float Freeshipping Button /wp-admin/crb_carbon_fields_container_float_freeshipping_button.php | 26 | 0.42 | 0.12 | 16.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wbg_notice_dismiss' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 112× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1
- > PHP Notice
Undefined variable: plural in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Datastore/Theme_Options_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Textarea_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Service/REST_API_Service.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/webgoias-float-freeshipping-button-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/crb_carbon_fields_container_float_freeshipping_button.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_float_freeshipping_button.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #4, #5 in webgoias-float-freeshipping-button-for-woocommerce/assets to your readme.txt
- Requires at least: Version not formatted correctly
webgoias-float-freeshipping-button-for-woocommerce/webgoias-float-freeshipping-button-for-woocommerce.php 85% from 13 tests
"Webgoias - Float Freeshipping Button for Woocommerce" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin27,846 lines of code in 403 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 171 | 5,188 | 8,459 | 12,933 |
PHP | 144 | 2,504 | 6,564 | 8,852 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 339 | 0 | 1,769 |
CSS | 7 | 325 | 1,139 | 1,662 |
JSON | 4 | 0 | 0 | 360 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 11 | 9.09% |
▷ Concrete classes | 110 | 90.91% |
▷ Final classes | 1 | 0.91% |
Methods | 898 | |
▷ Static methods | 90 | 10.02% |
▷ Public methods | 729 | 81.18% |
▷ Protected methods | 165 | 18.37% |
▷ Private methods | 4 | 0.45% |
Functions | 110 | |
▷ Named functions | 29 | 26.36% |
▷ Anonymous functions | 81 | 73.64% |
Constants | 34 | |
▷ Global constants | 11 | 32.35% |
▷ Class constants | 23 | 67.65% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icone.png | 1.79KB | 1.06KB | ▼ 40.78% |
images/logo.png | 11.11KB | 4.51KB | ▼ 59.37% |
images/imgCarrinho.png | 30.35KB | 12.21KB | ▼ 59.77% |