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.01MB] [CPU: ▼0.68ms] Passed 4 tests
Server-side resources used by WooSignal WooCommerce App
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.66 ▼6.61 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.44 ▼5.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.09 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 101.88 ▲7.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 43.98 ▲9.35 |
Server storage [IO: ▲9.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooSignal WooCommerce App
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 13.40 ▼0.95 | 9.17 ▲7.39 | 44.84 ▲2.97 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.03 | 87.05 ▼6.23 | 73.73 ▲31.12 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.99 ▼0.05 | 42.95 ▲5.92 | 37.51 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,696 ▲163 | 22.19 ▼0.98 | 710.07 ▲52.89 | 60.25 ▼4.63 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.10 ▼0.14 | 100.43 ▼3.41 | 75.24 ▲28.78 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woosignal-woocommerce-app/public/partials/woosignal-woocommerce-app-public-display.php
- > /wp-content/plugins/woosignal-woocommerce-app/admin/partials/woosignal-woocommerce-app-admin-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woosignal-woocommerce-app/public/partials/app-template.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woosignal-woocommerce-app/public/partials/home.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woosignal-woocommerce-app/public/partials/premium.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woosignal-woocommerce-app/woosignal-woocommerce-app.php 92% from 13 tests
The primary PHP file in "WooSignal WooCommerce App" version 2.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected432 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 155 | 570 | 302 |
CSS | 2 | 16 | 4 | 124 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 1.28MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/woosignal_logo_stripe_blue.png | 33.13KB | 8.33KB | ▼ 74.84% |
public/images/woosignal_labelstore_main_banner_android.png | 721.37KB | 48.14KB | ▼ 93.33% |
public/images/woocommerce_logo.png | 55.53KB | 28.71KB | ▼ 48.30% |
public/images/powered_by_stripe.png | 1.33KB | 1.64KB | 0.00% |
public/images/label_pro_iphone_x.png | 191.46KB | 58.64KB | ▼ 69.37% |