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.06MB] [CPU: ▼5.80ms] Passed 4 tests
A check of server-side resources used by Newsletter for Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.79 ▼5.18 |
Dashboard /wp-admin | 3.37 ▲0.06 | 61.13 ▲11.34 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.27 ▼1.76 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.12 ▼15.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.80 ▼0.83 |
Forms Submissions /wp-admin/edit.php?post_type=azf_submission | 3.33 | 36.22 |
Add Submission /wp-admin/post-new.php?post_type=azf_submission | 3.35 | 42.84 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Newsletter for Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.33 ▼1.31 | 4.34 ▲2.59 | 38.59 ▼8.01 |
Dashboard /wp-admin | 2,250 ▲65 | 5.90 ▲0.05 | 111.29 ▲1.80 | 46.45 ▲3.97 |
Posts /wp-admin/edit.php | 2,132 ▲40 | 2.07 ▲0.05 | 36.06 ▼5.72 | 37.89 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 17.43 ▼6.13 | 627.49 ▼62.67 | 53.25 ▲2.61 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.24 ▲0.10 | 95.09 ▼9.97 | 42.87 ▼4.79 |
Forms Submissions /wp-admin/edit.php?post_type=azf_submission | 1,138 | 1.96 | 31.76 | 28.02 |
Add Submission /wp-admin/post-new.php?post_type=azf_submission | 1,945 | 2.81 | 53.05 | 65.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-for-contact-form-7/azh_cf7_newsletter.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
newsletter-for-contact-form-7/azh_cf7_newsletter.php 85% from 13 tests
"Newsletter for Contact Form 7" version 1.27.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("newsletter-for-contact-form-7.php" instead of "azh_cf7_newsletter.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
Success! There were no dangerous files found in this plugin253 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 8 | 238 |
JavaScript | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin