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.00MB] [CPU: ▼3.94ms] Passed 4 tests
A check of server-side resources used by Woo Additional Fee
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.59 ▼3.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.54 ▲5.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.76 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.92 ▼9.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.21 ▼3.01 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Woo Additional Fee: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.48 | 1.81 ▼0.15 | 46.06 ▼3.30 |
Dashboard /wp-admin | 2,209 ▲21 | 5.89 ▼0.01 | 113.68 ▲5.51 | 45.52 ▲3.73 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 44.07 ▲5.73 | 33.58 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.56 ▲6.06 | 700.00 ▼32.04 | 70.10 ▲11.25 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.05 | 96.57 ▼23.27 | 42.42 ▼6.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Woo Additional Fee setting admin screen), #2 (Displayed additional fee on the front end)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== woo-additional-fee ===
)
woo-additional-fee/woo-additional-fee.php Passed 13 tests
The main PHP script in "Woo Additional Fee" version 1.0.0 is automatically included on every request by WordPress
115 characters long description:
This plugin allows merchant to add an additional cart fee to the cart by adding custom fee label and amount of fee.
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
Success! There were no dangerous files found in this plugin293 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 122 | 426 | 249 |
JavaScript | 1 | 6 | 0 | 38 |
CSS | 1 | 1 | 5 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
snapshot-1.png | 21.05KB | 12.49KB | ▼ 40.68% |
snapshot-2.png | 24.31KB | 12.67KB | ▼ 47.87% |
admin/css/wooaf_ico.png | 1.24KB | 0.46KB | ▼ 62.95% |