Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.09ms] Passed 4 tests
This is a short check of server-side resources used by Swifno Shipping Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 44.52 ▲9.24 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.74 ▼1.42 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.90 ▲1.35 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 94.65 ▲3.99 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 33.96 ▲0.42 |
Settings /wp-admin/admin.php?page=swifno-settings | 3.17 | 28.54 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_swifno_shipping |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
swifno_opts |
Browser metrics Passed 4 tests
Swifno Shipping Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.23 ▼1.52 | 1.74 ▼0.05 | 44.40 ▼4.35 |
Dashboard /wp-admin | 2,218 ▲30 | 5.84 ▲0.01 | 97.64 ▼1.55 | 39.42 ▼5.30 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.02 | 41.46 ▼0.90 | 40.07 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.16 ▼0.32 | 644.38 ▲58.61 | 63.22 ▲5.22 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.19 ▼0.02 | 97.28 ▲0.44 | 44.60 ▲2.53 |
Settings /wp-admin/admin.php?page=swifno-settings | 914 | 1.71 | 28.47 | 27.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- swifno_opts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=swifno-settings
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=swifno-settings
- > Notice in wp-content/plugins/swifno-merchant-api/includes/admin/settings.php+12
Undefined index: status
- > GET request to /wp-admin/admin.php?page=swifno-settings
- > Notice in wp-content/plugins/swifno-merchant-api/includes/admin/settings/delivery_settings.php+5
Undefined index: swifno_pickup_from_time
- > GET request to /wp-admin/admin.php?page=swifno-settings
- > Notice in wp-content/plugins/swifno-merchant-api/includes/admin/settings/delivery_settings.php+5
Undefined index: swifno_pickup_to_time
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/swifno-merchant-api/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (/assets/images/icon.png), #2 (/assets/images/swifno-1.jpg), #3 (/assets/images/swifno-2.jpg), #4 (/assets/images/swifno-3.jpg), #5 (/assets/images/swifno-4.jpg)
swifno-merchant-api/index.php 77% from 13 tests
"Swifno Shipping Plugin" version 5.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 342 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("swifno-merchant-api.php" instead of "index.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Everything looks great! No dangerous files found in this plugin965 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 191 | 47 | 818 |
CSS | 2 | 23 | 6 | 132 |
JavaScript | 1 | 5 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 21.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
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/swifno.png | 3.94KB | 2.77KB | ▼ 29.59% |