Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.14ms] Passed 4 tests
Server-side resources used by Autosaver for Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.54 ▼0.61 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.75 ▼18.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.10 ▼0.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.65 ▼9.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.45 ▲0.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Autosaver for Contact Form 7: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲26 | 14.21 ▼0.41 | 1.67 ▼0.12 | 44.18 ▲0.47 |
Dashboard /wp-admin | 2,203 ▲23 | 5.57 ▼0.09 | 93.35 ▲6.91 | 38.43 ▼4.82 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.98 ▲0.02 | 39.76 ▲3.11 | 36.39 ▲5.37 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.44 ▼0.10 | 681.24 ▼0.03 | 58.13 ▼0.21 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.31 ▲0.09 | 103.14 ▲0.05 | 48.51 ▲3.27 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: auto-save, contact form 7, facebook, cookie
cf7-autosaver/autosaver-for-cf7.php 77% from 13 tests
Analyzing the main PHP file in "Autosaver for Contact Form 7" version 1.0.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-autosaver.php" instead of "autosaver-for-cf7.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin574 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 135 | 434 | 524 |
JavaScript | 2 | 11 | 6 | 39 |
CSS | 1 | 3 | 5 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 3 | 100.00% |
Methods | 44 | |
▷ Static methods | 3 | 6.82% |
▷ Public methods | 34 | 77.27% |
▷ Protected methods | 7 | 15.91% |
▷ Private methods | 3 | 6.82% |
Functions | 1 | |
▷ Named functions | 1 | 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
There were not PNG files found in your plugin