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.07MB] [CPU: ▼7.90ms] Passed 4 tests
An overview of server-side resources used by Webshipper - Automated Shipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.86 ▼3.93 |
Dashboard /wp-admin | 3.38 ▲0.08 | 52.97 ▼0.72 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.39 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.91 ▼26.57 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.97 ▼0.38 |
Server storage [IO: ▲0.74MB] [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: 132 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Webshipper - Automated Shipping: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.77 ▲0.50 | 1.72 ▼0.11 | 40.90 ▲0.10 |
Dashboard /wp-admin | 2,206 ▲18 | 6.04 ▲0.93 | 108.62 ▼2.51 | 35.57 ▼5.06 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.05 | 40.43 ▲0.76 | 37.48 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,514 ▼25 | 17.70 ▼5.58 | 695.74 ▲17.37 | 59.90 ▲6.54 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.29 ▲0.08 | 103.16 ▲1.34 | 42.97 ▼2.63 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/webshipper-automated-shipping/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
webshipper-automated-shipping/webshipper-automated-shipping.php Passed 13 tests
The principal PHP file in "Webshipper - Automated Shipping" v. 1.5.5 is loaded by WordPress automatically on each request
55 characters long description:
Automated shipping for WooCommerce (Webshipper v2 only)
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 plugin13,120 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 1,912 | 4,958 | 9,292 |
Markdown | 9 | 917 | 0 | 3,106 |
CSS | 2 | 58 | 1 | 454 |
JSON | 6 | 0 | 0 | 155 |
JavaScript | 4 | 20 | 3 | 104 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 67 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 67 | 100.00% |
▷ Final classes | 7 | 10.45% |
Methods | 653 | |
▷ Static methods | 67 | 10.26% |
▷ Public methods | 534 | 81.78% |
▷ Protected methods | 13 | 1.99% |
▷ Private methods | 106 | 16.23% |
Functions | 159 | |
▷ Named functions | 67 | 42.14% |
▷ Anonymous functions | 92 | 57.86% |
Constants | 49 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 49 | 100.00% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icons/gls.png | 14.61KB | 6.94KB | ▼ 52.48% |
img/icons/postnord.png | 7.07KB | 4.34KB | ▼ 38.62% |
img/icons/ups.png | 10.55KB | 6.45KB | ▼ 38.88% |
img/icons/dao.png | 7.56KB | 3.87KB | ▼ 48.82% |
img/icons/bring.png | 4.45KB | 2.46KB | ▼ 44.79% |