Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.95ms] Passed 4 tests
An overview of server-side resources used by Wayra - Free shipping on product details
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.13 ▼3.87 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.69 ▼0.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.34 ▼3.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.84 ▲12.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.88 ▲0.72 |
Free shipping on product details /wp-admin/options-general.php?page=wayra-free-shipping-on-product-details | 3.30 | 31.69 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wayra - Free shipping on product details
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.27 ▼1.12 | 4.37 ▲2.68 | 39.03 ▼4.75 |
Dashboard /wp-admin | 2,209 ▲21 | 4.83 ▼0.96 | 104.98 ▲6.67 | 40.03 ▲0.59 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.06 ▲0.07 | 41.33 ▲2.69 | 36.06 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 22.99 ▼0.31 | 667.92 ▲40.91 | 54.27 ▲5.52 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.17 ▼0.04 | 99.68 ▲0.08 | 43.82 ▲2.08 |
Free shipping on product details /wp-admin/options-general.php?page=wayra-free-shipping-on-product-details | 1,021 | 2.18 | 24.97 | 45.96 |
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
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wayra-free-shipping-on-product-details
- > Notice in wp-content/plugins/wayra-free-shipping-on-product-details/admin/partials/wayra-free-shipping-on-product-details-admin-display.php+38
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wayra-free-shipping-on-product-details/public/partials/wayra-free-shipping-on-product-details-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: text in wp-content/plugins/wayra-free-shipping-on-product-details/public/partials/wayra-free-shipping-on-product-details-public-display.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wayra-free-shipping-on-product-details/admin/partials/wayra-free-shipping-on-product-details-admin-display.php:16
- > PHP Notice
Undefined variable: show_icon in wp-content/plugins/wayra-free-shipping-on-product-details/public/partials/wayra-free-shipping-on-product-details-public-display.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6, #7, #8 in wayra-free-shipping-on-product-details/assets to your readme.txt
wayra-free-shipping-on-product-details/wayra-free-shipping-on-product-details.php Passed 13 tests
The entry point to "Wayra - Free shipping on product details" version 1.0.1 is a PHP file that has certain tags in its header comment area
63 characters long description:
Show icon and shipping text on products based on product price.
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
No dangerous file extensions were detected1,633 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 418 | 506 | 1,210 |
PHP | 12 | 173 | 500 | 341 |
CSS | 2 | 13 | 0 | 82 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 are no PNG files in this plugin