Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.95ms] Passed 4 tests
Server-side resources used by F12 WooCommerce accessories
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.31 ▲5.75 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.42 ▼0.38 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.86 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 82.93 ▼14.86 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.36 ▲4.77 |
Dashboard /wp-admin/admin.php?page=f12-wc-accessories | 3.27 | 32.23 |
Optional Accessories /wp-admin/admin.php?page=f12-wc-accessories_optional_accessoire | 3.27 | 30.02 |
Cart /wp-admin/admin.php?page=f12-wc-accessories_cart | 3.27 | 37.18 |
Required Accessories /wp-admin/admin.php?page=f12-wc-accessories_required_accessoire | 3.27 | 31.18 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by F12 WooCommerce accessories
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.25 ▼0.98 | 1.80 ▲0.09 | 42.30 ▼0.76 |
Dashboard /wp-admin | 2,252 ▲61 | 4.84 ▼0.07 | 107.08 ▲1.64 | 44.11 ▲0.59 |
Posts /wp-admin/edit.php | 2,134 ▲42 | 2.00 ▲0.01 | 41.56 ▼2.02 | 34.74 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,576 ▲34 | 18.16 ▲0.04 | 598.62 ▼22.33 | 56.77 ▲1.53 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.21 ▼0.03 | 95.27 ▼5.80 | 42.21 ▼2.49 |
Dashboard /wp-admin/admin.php?page=f12-wc-accessories | 861 | 2.18 | 24.40 | 27.52 |
Optional Accessories /wp-admin/admin.php?page=f12-wc-accessories_optional_accessoire | 1,054 | 2.01 | 23.98 | 29.06 |
Cart /wp-admin/admin.php?page=f12-wc-accessories_cart | 1,018 | 2.01 | 26.12 | 29.71 |
Required Accessories /wp-admin/admin.php?page=f12-wc-accessories_required_accessoire | 1,138 | 2.02 | 23.44 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in f12-wc-accessories/assets to your readme.txt
- Requires at least: Version not formatted correctly
- Requires php: Version not formatted correctly
f12-wc-accessories/Accessories.class.php 92% from 13 tests
The primary PHP file in "F12 WooCommerce accessories" version 1.42 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("f12-wc-accessories.php" instead of "Accessories.class.php")
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 plugin2,431 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 460 | 657 | 2,163 |
CSS | 2 | 56 | 17 | 268 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 24 | 21.24% |
▷ Public methods | 102 | 90.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 9.73% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo-forge12-dark.png | 18.66KB | 6.28KB | ▼ 66.37% |
assets/logo-forge12.png | 10.04KB | 3.91KB | ▼ 61.10% |