Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼18.90ms] Passed 4 tests
An overview of server-side resources used by AMP for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.51 ▼10.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.25 ▼24.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 39.29 ▼14.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.20 ▼25.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.96 ▼0.44 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
AMP for Contact Form 7: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.44 | 2.06 ▼0.38 | 44.09 ▼10.90 |
Dashboard /wp-admin | 2,209 ▲18 | 4.89 ▼0.01 | 112.54 ▼10.57 | 44.60 ▼5.88 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 39.01 ▼1.13 | 32.03 ▼8.83 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.31 ▲1.63 | 706.15 ▼13.43 | 54.19 ▼21.34 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.06 | 113.46 ▼23.67 | 46.38 ▼15.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/quiz.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/file.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/clearform.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/checkbox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/select.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/number.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/textarea.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/date.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-for-contact-form-7/includes/FrontEnd/modules/text.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Donate link: Invalid URI ("")
amp-for-contact-form-7/amp-for-contact-form-7.php 92% from 13 tests
The main PHP file in "AMP for Contact Form 7" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,298 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 362 | 333 | 1,191 |
CSS | 1 | 10 | 0 | 84 |
JSON | 2 | 0 | 0 | 21 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected