Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼2.62ms] 75% from 4 tests
Server-side resources used by HT Service - Roofing Service WordPress Plugin
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,343.45ms on /wp-admin/admin.php?page=htservice-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 43.20 ▲2.02 |
Dashboard /wp-admin | 3.77 ▲0.47 | 55.70 ▲2.87 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 64.24 ▲13.52 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 89.99 ▼16.95 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 40.05 ▲1.57 |
Services /wp-admin/edit.php?post_type=htservice | 3.74 | 44.10 |
Settings /wp-admin/admin.php?page=htservice_options | 3.61 | 38.06 |
Recommendations /wp-admin/admin.php?page=htservice-recommendations | 7.97 | 1,343.45 |
Server storage [IO: ▲1.69MB] [DB: ▲0.67MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
pro_themes |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
settings |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by HT Service - Roofing Service WordPress Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲354 | 15.46 ▲0.91 | 9.79 ▲7.93 | 43.08 ▼4.16 |
Dashboard /wp-admin | 2,410 ▲222 | 6.58 ▲1.72 | 138.57 ▲22.94 | 43.18 ▼6.08 |
Posts /wp-admin/edit.php | 2,318 ▲229 | 3.53 ▲1.52 | 50.80 ▲12.05 | 40.05 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,419 ▼114 | 20.74 ▼2.55 | 552.92 ▼115.55 | 38.35 ▼16.47 |
Media Library /wp-admin/upload.php | 1,460 ▲72 | 4.40 ▲0.18 | 88.04 ▼14.43 | 46.28 ▲0.68 |
Services /wp-admin/edit.php?post_type=htservice | 1,308 | 3.47 | 53.91 | 37.56 |
Settings /wp-admin/admin.php?page=htservice_options | 1,207 | 3.62 | 75.06 | 31.71 |
Recommendations /wp-admin/admin.php?page=htservice-recommendations | 3,105 | 3.46 | 110.13 | 36.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- settings
- can_compress_scripts
- pro_themes
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 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
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-service/admin/admin-init.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ht-service/admin/htservice_custom-metabox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-service/admin/htservice_custom-post-type.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ht-service/includes/archive-htservice.php:10
- > PHP Fatal error
require_once(): Failed opening required 'HTSERVICE_ADDONS_PL_PATHadmin/admin-init.php' (include_path='.:/usr/share/php') in wp-content/plugins/ht-service/admin/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ht-service/admin/htservice_shortcode.php:85
- > PHP Warning
Use of undefined constant HTSERVICE_ADDONS_PL_PATH - assumed 'HTSERVICE_ADDONS_PL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ht-service/admin/init.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'HTService_Settings_API' not found in wp-content/plugins/ht-service/admin/plugin-options.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ht-service/includes/single-htservice.php:10
- > PHP Warning
require_once(HTSERVICE_ADDONS_PL_PATHadmin/admin-init.php): failed to open stream: No such file or directory in wp-content/plugins/ht-service/admin/init.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: service plugin, service box, roofing service, service, service list
ht-service/htservice.php 85% from 13 tests
The main PHP script in "HT Service - Roofing Service WordPress Plugin" version 1.1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ht-service.php" instead of "htservice.php")
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
Everything looks great! No dangerous files found in this plugin6,167 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 390 | 342 | 2,887 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 5 | 79 | 27 | 456 |
JavaScript | 6 | 35 | 48 | 153 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 33.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 53 | 96.36% |
▷ Protected methods | 2 | 3.64% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
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.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/images/extensions/ht-google-place-review.png | 2.64KB | 0.00KB | ▼ 100.00% |
admin/images/extensions/htmega-pro.png | 4.60KB | 4.78KB | 0.00% |
(invalid) admin/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
admin/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |
admin/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |