Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.28ms] Passed 4 tests
Server-side resources used by FriendStore for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.13 ▼8.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.19 ▼1.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.21 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.75 ▼19.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.75 ▲3.05 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FriendStore for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.13 | 1.79 ▲0.04 | 41.79 ▲0.17 |
Dashboard /wp-admin | 2,206 ▲15 | 4.89 ▼0.01 | 109.04 ▲6.47 | 40.11 ▼0.31 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 39.88 ▼0.48 | 33.73 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,524 ▼4 | 23.12 ▲4.82 | 642.18 ▼12.76 | 62.79 ▼1.32 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.30 ▲0.15 | 121.93 ▼5.70 | 46.98 ▼7.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/addresses/dropdown-addresses.php
- > /wp-content/plugins/friendstore-for-woocommerce/includes/admin/class.admin-notices.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/friendstore-for-woocommerce/assets/json/wards.php:11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/friendstore-for-woocommerce/includes/admin/class.admin-user-addresses-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/friendstore-for-woocommerce/assets/json/districts.php:11
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/addresses/dropdown-addresses.php on line 4
- > PHP Notice
Undefined variable: calculator_metakey in wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/shipping-calculator/quick-settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/shipping-calculator/bulk-settings.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/friendstore-for-woocommerce/includes/admin/class.admin-user-addresses-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/shipping-calculator/quick-settings.php:6
- > PHP Notice
Undefined variable: add_new_link in wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/addresses/button-add-new.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/friendstore-for-woocommerce/templates/friendstore/addresses/button-add-new.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% 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 to be fixed:
- Screenshots: No descriptions were found for these screenshots #10, #13, #14, #15, #16, #17, #18, #19 in friendstore-for-woocommerce/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
friendstore-for-woocommerce/friendstore-for-woocommerce.php 92% from 13 tests
The main PHP file in "FriendStore for WooCommerce" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4.0" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin35,511 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 1 | 9,033 | 10,093 | 18,097 |
PHP | 27 | 633 | 338 | 16,408 |
JavaScript | 5 | 96 | 56 | 619 |
CSS | 2 | 9 | 7 | 385 |
SVG | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 29.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 4.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 134 | |
▷ Static methods | 20 | 14.93% |
▷ Public methods | 124 | 92.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 7.46% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/delivery.png | 3.24KB | 3.35KB | 0.00% |
assets/images/create-order.png | 0.98KB | 1.02KB | 0.00% |
assets/images/delivery-truck.png | 1.85KB | 1.90KB | 0.00% |