Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼1.44ms] Passed 4 tests
Analyzing server-side resources used by instashipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.18 ▲5.23 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.17 ▼7.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.85 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.98 ▼1.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.17 ▲3.03 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for instashipping
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.34 ▲0.08 | 1.78 ▼0.02 | 43.74 ▲0.54 |
Dashboard /wp-admin | 2,198 ▲21 | 5.52 ▼0.10 | 83.40 ▼3.54 | 38.02 ▼5.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 37.44 ▲1.23 | 36.92 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.10 ▲4.59 | 657.44 ▲1.62 | 50.98 ▼16.25 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.03 | 97.07 ▼4.17 | 43.53 ▲0.31 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/instashipping/public/partials/instaship-public-display.php
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 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Set Live api key.), #2 (Create shipment of order.), #3 (order grid view.), #4 (Select desire service to book shipment.), #5 (Edit view of the shipment.), #6 (Booked shipment with selected service.), #7 (Download or print label pdf.)
instashipping/instaship.php 77% from 13 tests
The main file in "instashipping" v. 4.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("instashipping.php" instead of "instaship.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.7.3" instead of "5.6")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,527 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 279 | 629 | 1,171 |
CSS | 3 | 151 | 22 | 768 |
JavaScript | 3 | 56 | 47 | 532 |
XML | 3 | 0 | 0 | 56 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 46 | 90.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.80% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 1.52MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-1.png | 214.93KB | 85.12KB | ▼ 60.40% |
icon-128x128.png | 5.30KB | 2.77KB | ▼ 47.68% |
admin/img/cancel1.png | 0.33KB | 0.33KB | ▼ 0.59% |
Screenshot-4.png | 148.33KB | 58.82KB | ▼ 60.35% |
admin/img/cancel.png | 0.73KB | 0.72KB | ▼ 1.61% |