Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.65ms] Passed 4 tests
An overview of server-side resources used by AMP Contact FORM 7 - AMPCF7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.94 ▼1.04 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.31 ▼1.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.68 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.38 ▼4.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.95 ▲4.21 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for AMP Contact FORM 7 - AMPCF7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.42 ▼0.22 | 1.84 ▼0.12 | 42.68 ▲5.22 |
Dashboard /wp-admin | 2,203 ▲15 | 5.81 ▲0.93 | 98.11 ▼0.72 | 41.38 ▼3.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 36.26 ▼4.36 | 30.25 ▼10.32 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.21 ▼4.82 | 599.37 ▼79.30 | 54.38 ▲4.04 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▼0.06 | 96.46 ▼5.16 | 42.08 ▼0.53 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
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
Good news, no errors were detected
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AMP_Base_Sanitizer' not found in wp-content/plugins/amp-contact-form-7/includes/class-amp-form-sanitizer.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-contact-form-7/amp-contact-form-7.php:22
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: amp, contact form 7, cf7, amp contact form 7
amp-contact-form-7/amp-contact-form-7.php Passed 13 tests
The main PHP script in "AMP Contact FORM 7 - AMPCF7" version 1.0.1 is automatically included on every request by WordPress
44 characters long description:
Enable Contact Form 7 plugin support in AMP.
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 detected261 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 102 | 218 |
CSS | 1 | 1 | 0 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 9.50 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 16.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin