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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.14ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form 7 - Hidden Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 52.31 ▲9.36 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.15 ▼1.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.55 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.27 ▼20.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 38.91 ▲3.86 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_cc7_hw |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7 - Hidden Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.21 ▼0.21 | 1.68 ▼0.42 | 42.81 ▼1.09 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.08 | 93.99 ▼0.41 | 40.19 ▼5.49 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.94 ▼0.08 | 41.49 ▲3.09 | 38.28 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,529 ▼9 | 22.92 ▼0.30 | 667.28 ▼24.60 | 56.32 ▼0.86 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.09 | 102.18 ▼6.59 | 44.74 ▲1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_cc7_hw
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cf7-hidden-widget/contact-form-7-hidden-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: No valid plugin tags found
- Requires php: Invalid plugin version format
cf7-hidden-widget/contact-form-7-hidden-widget.php 92% from 13 tests
The principal PHP file in "Contact Form 7 - Hidden Widget" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-hidden-widget.php" instead of "contact-form-7-hidden-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin246 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 47 | 89 | 112 |
PO File | 1 | 20 | 20 | 73 |
Markdown | 1 | 18 | 0 | 37 |
JavaScript | 1 | 13 | 15 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin