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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.60MB] [CPU: ▼19.39ms] Passed 4 tests
Analyzing server-side resources used by HeyGov
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.67 ▼4.43 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.90 ▼0.01 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.96 ▼6.92 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 39.47 ▼66.21 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.35 ▲1.97 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for HeyGov
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.43 ▲0.08 | 5.18 ▲2.94 | 38.13 ▼7.94 |
Dashboard /wp-admin | 2,219 ▲39 | 5.59 ▼0.10 | 87.83 ▼0.04 | 37.59 ▼3.29 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 1.99 ▼0.05 | 38.00 ▼5.17 | 33.13 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.19 ▲0.10 | 637.26 ▼18.40 | 59.95 ▼0.13 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.18 ▲0.01 | 96.69 ▼21.09 | 43.55 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/heygov/pagebuilder-module/includes/frontend.js.php
- > /wp-content/plugins/heygov/includes/view/show-heygov-muni-forms.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/heygov/pagebuilder-module/includes/frontend.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/heygov/includes/view/show-heygov-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_wp_error() in wp-content/plugins/heygov/includes/view/show-venue.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/heygov/includes/view/show-heygov-muni-forms.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/heygov/pagebuilder-module/heygov-pb-module.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/heygov/includes/view/apps-banner.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/heygov/heygov.php:14
- > PHP Notice
Undefined variable: forms in wp-content/plugins/heygov/includes/view/show-heygov-muni-forms.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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: reporting, forms, issue reporting, permits, heygov
heygov/heygov.php Passed 13 tests
Analyzing the main PHP file in "HeyGov" version 1.8.1
63 characters long description:
Manage the HeyGov widget on your municipality WordPress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,343 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 158 | 39 | 747 |
CSS | 2 | 106 | 13 | 423 |
JavaScript | 2 | 10 | 1 | 99 |
SVG | 10 | 0 | 0 | 70 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/badge-play-store.png | 11.70KB | 6.09KB | ▼ 47.94% |