Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.71ms] Passed 4 tests
An overview of server-side resources used by CF7 HubSpot Forms Add-on For Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.51 ▲2.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.68 ▼0.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.99 ▼18.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.05 ▼9.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.55 ▲5.90 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
CF7 HubSpot Forms Add-on For Contact Form 7: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼0 | 13.23 ▲0.06 | 2.11 ▲0.18 | 42.84 ▲1.85 |
Dashboard /wp-admin | 2,203 ▼3 | 5.84 ▼0.01 | 103.59 ▼4.18 | 39.24 ▼0.11 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.08 | 39.58 ▼4.13 | 34.88 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.28 ▲0.06 | 760.87 ▲32.07 | 61.43 ▲5.93 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▼0.02 | 108.24 ▲3.09 | 49.40 ▲6.36 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-hubspot-forms-add-on-for-contact-form-7/cf7-hubspot-forms-addon.php on line 15
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-hubspot-forms-add-on-for-contact-form-7/cf7-hubspot-forms-addon.php on line 15
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-hubspot-forms-add-on-for-contact-form-7/cf7-hubspot-forms-addon.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/cf7-hubspot-forms-add-on-for-contact-form-7/cf7-hubspot-forms-addon.php:17
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: Add an image for screenshot #1 (screenshot-1.jpg)
cf7-hubspot-forms-add-on-for-contact-form-7/cf7-hubspot-forms-addon.php 85% from 13 tests
This is the main PHP file of "CF7 HubSpot Forms Add-on For Contact Form 7" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-hubspot-forms-add-on-for-contact-form-7.php" instead of "cf7-hubspot-forms-addon.php")
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
Good job! No executable or dangerous file extensions detected384 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 10 | 260 |
CSS | 1 | 3 | 6 | 82 |
JavaScript | 1 | 32 | 0 | 42 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin