Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.19MB] [CPU: ▼12.14ms] Passed 4 tests
This is a short check of server-side resources used by WPCF7 Mail Collector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 14.22 ▼27.05 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.86 ▼5.73 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 31.76 ▼18.18 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.76 ▲2.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.70 ▲2.85 |
Add New /wp-admin/post-new.php?post_type=mail_collector | 3.27 | 51.39 |
Mail Collector /wp-admin/edit.php?post_type=mail_collector | 3.17 | 25.18 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WPCF7 Mail Collector
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.18 ▼1.62 | 1.78 ▲0.08 | 40.53 ▼3.69 |
Dashboard /wp-admin | 2,233 ▲42 | 5.89 ▲1.02 | 95.14 ▼18.40 | 39.82 ▼7.28 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▼0.00 | 39.84 ▲3.83 | 35.08 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.24 ▲5.76 | 634.96 ▼65.75 | 53.99 ▲0.58 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.05 | 99.33 ▼0.64 | 41.96 ▼3.03 |
Add New /wp-admin/post-new.php?post_type=mail_collector | 1,468 | 2.53 | 48.03 | 54.34 |
Mail Collector /wp-admin/edit.php?post_type=mail_collector | 1,088 | 1.96 | 31.94 | 30.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=mail_collector
- > Warning in wp-content/plugins/wpcf7-email-collector/wpcf7-mail-collector.php+82
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mail_collector
- > Notice in wp-content/plugins/wpcf7-email-collector/wpcf7-mail-collector.php+320
Undefined index: source_form
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
wpcf7-email-collector/wpcf7-mail-collector.php 77% from 13 tests
The main PHP file in "WPCF7 Mail Collector" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "5.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("wpcf7-email-collector.php" instead of "wpcf7-mail-collector.php")
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
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
Good job! No executable or dangerous file extensions detected288 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 69 | 22 | 288 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin