Benchmarks
Plugin footprint 82% 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.53MB] [CPU: ▲1.56ms] 75% from 4 tests
This is a short check of server-side resources used by WP Insurance - WordPress Insurance Service Plugin
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,324.64ms on /wp-admin/admin.php?page=wpinsurance-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 43.50 ▲3.91 |
Dashboard /wp-admin | 3.89 ▲0.59 | 55.45 ▲5.39 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 54.82 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 98.50 ▼5.99 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 43.89 ▲9.08 |
Options /wp-admin/admin.php?page=wpinsurance_options | 3.73 | 44.64 |
Gallery /wp-admin/edit.php?post_type=wpinsurance_gallery | 3.87 | 49.09 |
Agent /wp-admin/edit.php?post_type=wpinsurance_agent | 3.86 | 43.97 |
Recommendations /wp-admin/admin.php?page=wpinsurance-recommendations | 8.10 | 1,324.64 |
Services /wp-admin/edit.php?post_type=wpinsurance | 3.87 | 52.04 |
Server storage [IO: ▲1.94MB] [DB: ▲0.67MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
settings |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
pro_themes |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Insurance - WordPress Insurance Service Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,181 ▲420 | 15.75 ▲1.38 | 12.58 ▲10.85 | 45.56 ▲3.33 |
Dashboard /wp-admin | 2,418 ▲241 | 6.36 ▲0.70 | 126.30 ▲15.23 | 45.39 ▼1.38 |
Posts /wp-admin/edit.php | 2,357 ▲254 | 3.74 ▲1.70 | 51.28 ▲8.10 | 40.93 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,455 ▼80 | 20.77 ▲2.31 | 571.27 ▼56.98 | 37.94 ▼23.10 |
Media Library /wp-admin/upload.php | 1,497 ▲94 | 4.50 ▲0.27 | 87.01 ▼15.86 | 45.14 ▼2.73 |
Options /wp-admin/admin.php?page=wpinsurance_options | 1,243 | 3.43 | 95.28 | 34.37 |
Gallery /wp-admin/edit.php?post_type=wpinsurance_gallery | 1,341 | 3.61 | 51.24 | 36.56 |
Agent /wp-admin/edit.php?post_type=wpinsurance_agent | 1,335 | 3.70 | 49.19 | 32.91 |
Recommendations /wp-admin/admin.php?page=wpinsurance-recommendations | 3,154 | 3.46 | 52.57 | 109.40 |
Services /wp-admin/edit.php?post_type=wpinsurance | 1,344 | 3.60 | 51.01 | 31.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- settings
- db_upgraded
- theysaidso_admin_options
- pro_themes
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-insurance/includes/single-wpinsurance_agent.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-insurance/admin/wpinsurance_shortcode.php:85
- > PHP Warning
Use of undefined constant WPINSURANCE_ADDONS_PL_PATH - assumed 'WPINSURANCE_ADDONS_PL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-insurance/admin/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insurance/admin/wpinsurance_custom-post-type.php:239
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-insurance/includes/archive-wpinsurance.php:10
- > PHP Fatal error
require_once(): Failed opening required 'WPINSURANCE_ADDONS_PL_PATHadmin/admin-init.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-insurance/admin/init.php on line 2
- > PHP Warning
require_once(WPINSURANCE_ADDONS_PL_PATHadmin/admin-init.php): failed to open stream: No such file or directory in wp-content/plugins/wp-insurance/admin/init.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WPInsurance_Settings_API' not found in wp-content/plugins/wp-insurance/admin/plugin-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-insurance/includes/single-wpinsurance.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insurance/admin/admin-init.php:17
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in wp-insurance/assets to your readme.txt
wp-insurance/wpinsurance.php 85% from 13 tests
"WP Insurance - WordPress Insurance Service Plugin" version 2.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-insurance.php" instead of "wpinsurance.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected11,752 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 827 | 418 | 6,706 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 6 | 158 | 54 | 2,209 |
JavaScript | 7 | 39 | 61 | 166 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 27.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 73 | 85.88% |
▷ Protected methods | 12 | 14.12% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 28 | 96.55% |
▷ Anonymous functions | 1 | 3.45% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/extensions/ht-script-pro.png | 6.03KB | 2.71KB | ▼ 55.09% |
admin/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
admin/images/extensions/ht-slider-addons-pro.png | 6.41KB | 4.35KB | ▼ 32.23% |
(invalid) admin/images/extensions/wp-plugin-manager-pro.png | 13.31KB | 0.00KB | ▼ 100.00% |
admin/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |