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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.60ms] Passed 4 tests
A check of server-side resources used by WC Pickup Store
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.76 ▼3.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.08 ▼1.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.67 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.68 ▼0.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.24 ▲1.14 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WC Pickup Store: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.20 ▼0.50 | 1.77 ▲0.03 | 37.02 ▼5.66 |
Dashboard /wp-admin | 2,207 ▲33 | 5.62 ▼0.02 | 98.47 ▼2.40 | 44.00 ▼0.55 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.97 ▼0.04 | 40.17 ▼4.55 | 36.46 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.24 ▲0.20 | 639.84 ▼12.98 | 48.06 ▼2.64 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.20 ▲0.04 | 95.77 ▼3.86 | 41.04 ▲0.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wc-pickup-store/templates/archive-store.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-pickup-store/includes/admin/wps-admin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-pickup-store/includes/class-wps-init.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-pickup-store/templates/selected-store-details.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-pickup-store/includes/cpt-store.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wc-pickup-store/templates/single-store.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-pickup-store/includes/integrations/class-widget-stores.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-pickup-store/templates/wrapper-store.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-pickup-store/templates/wrapper-vc_stores.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-pickup-store/includes/admin/wps-settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
9 plugin tags: store post type, ecommerce, e-commerce, local shipping, store...
wc-pickup-store/wc-pickup-store.php 92% from 13 tests
"WC Pickup Store" version 1.8.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,100 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 255 | 405 | 1,808 |
PO File | 3 | 391 | 556 | 954 |
CSS | 2 | 32 | 4 | 174 |
SVG | 1 | 1 | 1 | 116 |
JavaScript | 2 | 11 | 13 | 48 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 51 | |
▷ Named functions | 50 | 98.04% |
▷ Anonymous functions | 1 | 1.96% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wps_placeholder.png | 4.33KB | 1.71KB | ▼ 60.63% |