Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼5.77ms] Passed 4 tests
Analyzing server-side resources used by SHIIP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 37.52 ▼3.67 |
Dashboard /wp-admin | 3.52 ▲0.21 | 45.83 ▼8.87 |
Posts /wp-admin/edit.php | 3.64 ▲0.27 | 46.30 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 92.25 ▼9.74 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 33.67 ▼0.81 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
SHIIP: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.14 ▼0.21 | 1.83 ▲0.21 | 40.04 ▼3.40 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.10 | 90.80 ▼11.84 | 36.76 ▼5.64 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 39.85 ▼0.13 | 40.25 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.23 ▲0.17 | 602.33 ▼52.70 | 61.85 ▲1.82 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▲0.01 | 97.26 ▲0.03 | 43.25 ▲2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/shiip/admin/partials/plugin-name-admin-display.php
- > /wp-content/plugins/shiip/public/partials/plugin-name-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shiip/includes/shiipFunctions.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (SHIIP under woocommerce shiiping section) image required
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
shiip/shiip.php Passed 13 tests
The primary PHP file in "SHIIP" version 1.1.1 is used by WordPress to initiate all plugin functionality
137 characters long description:
The only shipping app you will ever need for your business. You can “Shiip” with top logistics companies at half their standard rates
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
Success! There were no dangerous files found in this plugin1,150 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 605 | 547 | 1,137 |
Markdown | 2 | 1 | 0 | 7 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/shiip.png | 1.38KB | 1.25KB | ▼ 8.99% |
assets/screenshot-1.png | 235.61KB | 77.08KB | ▼ 67.28% |