Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.26ms] Passed 4 tests
This is a short check of server-side resources used by Friendly User Agent for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.84 ▲0.42 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.84 ▼5.76 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.69 ▲5.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.50 ▼15.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.63 ▼4.10 |
Server storage [IO: ▲0.18MB] [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: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Friendly User Agent for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.08 ▼0.18 | 1.81 ▲0.22 | 37.08 ▼5.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.08 | 87.14 ▲2.14 | 37.10 ▼6.89 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.03 | 38.71 ▲4.63 | 35.83 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.08 ▲0.02 | 669.62 ▼11.31 | 51.84 ▼1.75 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.29 ▲0.18 | 94.45 ▼10.92 | 39.62 ▼5.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: browser, reporting, mobile, user agent, woocommerce
woo-friendly-user-agent/woo-friendly-user-agent.php 92% from 13 tests
"Friendly User Agent for WooCommerce" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0.0")
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 plugin320 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 57 | 320 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
26 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
files/img/amazon-logo.png | 2.82KB | 1.33KB | ▼ 52.70% |
files/img/1x1.png | 46.20KB | 0.09KB | ▼ 99.80% |
files/img/firefox-logo.png | 4.13KB | 1.40KB | ▼ 66.12% |
files/img/safari-logo.png | 3.93KB | 1.33KB | ▼ 66.05% |
files/img/vivaldi-logo.png | 3.64KB | 1.28KB | ▼ 64.96% |