Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.15ms] Passed 4 tests
Server-side resources used by Ship-Safely
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.61 ▲1.02 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.11 ▼2.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.50 ▲2.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.16 ▼14.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.71 ▲2.76 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
shpsafe_woo_user_api_token |
shpsafe_woo_admin_api_token |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Ship-Safely
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲92 | 14.86 ▲0.57 | 14.96 ▲13.16 | 43.53 ▲0.88 |
Dashboard /wp-admin | 2,233 ▲45 | 6.01 ▲1.10 | 129.46 ▲28.10 | 41.94 ▲0.07 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.69 ▲0.69 | 52.47 ▲15.91 | 36.87 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.93 ▲6.44 | 632.61 ▼32.57 | 69.56 ▲7.80 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 5.07 ▲0.83 | 111.46 ▲9.68 | 43.69 ▼0.32 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 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 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ship-safely/public/partials/nano-insurance-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_action() in wp-content/plugins/ship-safely/route/index.php:45
- > 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 87% from 29 tests
readme.txt 88% 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 (Wordpress admin console), #2 (Login and registration page), #3 (One-click cart protection on checkout), #4 (Track and earn commission for each policy sold), #5 (View and manage policies sold through your shop)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ship-safely ===
)
ship-safely/nano-insurance.php 85% from 13 tests
The main file in "Ship-Safely" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ship-safely.php" instead of "nano-insurance.php")
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 detected36,537 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 3,943 | 6,363 | 34,349 |
CSS | 6 | 158 | 241 | 815 |
SVG | 2 | 0 | 1 | 788 |
PHP | 15 | 196 | 638 | 583 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 15 | 36.59% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.07% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/dist/glyph-c.png | 19.54KB | 7.94KB | ▼ 59.37% |
public/dist/logo-min-c.png | 9.22KB | 4.49KB | ▼ 51.25% |
public/dist/logo-glyph-b.png | 1.60KB | 1.57KB | ▼ 1.77% |