Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲560.19ms] 75% from 4 tests
Analyzing server-side resources used by Insurify - Order & Shipping Protection
Please have a look at the following items
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 560.19ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 626.72 ▲587.59 |
Dashboard /wp-admin | 3.54 ▲0.19 | 628.01 ▲572.30 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 593.30 ▲548.79 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 626.18 ▲532.07 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 718.82 ▲684.39 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Insurify - Order & Shipping Protection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,480 ▼281 | 13.67 ▼0.60 | 0.48 ▼1.12 | 15.45 ▼24.20 |
Dashboard /wp-admin | 2,231 ▲54 | 5.66 ▲0.01 | 91.21 ▼4.14 | 38.47 ▲0.61 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.52 ▲0.50 | 36.87 ▼2.16 | 36.47 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 21.38 ▼1.81 | 653.01 ▲5.32 | 46.54 ▼13.48 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.94 ▲0.73 | 114.70 ▲18.44 | 45.66 ▲1.91 |
Uninstaller [IO: ▲4.38MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsThis plugin did not uninstall successfully, leaving 6 options in the database
- The plugin did not uninstall successfully, leaving 59 files (4.38MB) in the plugin directory
- (new file) images/broken-product.jpg
- (new file) css/ecomsurance.css
- (new file) css/tailwind.min.css
- (new file) images/CloseIcon.svg
- (new file) css/jquery.dataTables.css
- (new file) class.ecomsurance.php
- (new file) css/style.css
- (new file) class.ecomsurance-stripe.php
- (new file) images/check_img.png
- (new file) ecomsurance.php
- ...
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/insurify/views/frontend/ecomsurance-frontpage-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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:
- Donate link: Please fix this invalid URI: "#"
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== insurify ===
)
insurify/ecomsurance.php 77% from 13 tests
The primary PHP file in "Insurify - Order & Shipping Protection" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("insurify.php" instead of "ecomsurance.php")
- Description: Keep the plugin description shorter than 140 characters (currently 238 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin27,151 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,088 | 6,891 | 19,753 |
PHP | 30 | 952 | 150 | 5,955 |
CSS | 4 | 27 | 33 | 1,438 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 32 | 96.97% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.06% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/step-1.png | 8.79KB | 4.93KB | ▼ 43.89% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/search_img.png | 25.53KB | 7.43KB | ▼ 70.91% |