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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.17ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form to Any API
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.93 ▼6.39 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.63 ▼15.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.30 ▲3.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.17 ▼7.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.48 ▼2.35 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form to Any API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▲0.00 | 1.59 ▼0.14 | 36.20 ▼6.35 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.04 | 93.61 ▲4.57 | 44.47 ▲3.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.06 | 39.22 ▲0.55 | 35.72 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,529 ▼15 | 23.37 ▼1.77 | 585.00 ▼21.87 | 51.78 ▼18.70 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▲0.02 | 96.69 ▼7.14 | 41.34 ▼4.82 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/contact-form-to-any-api/public/partials/cf7-to-any-api-public-display.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Cf7_To_Any_Api' not found in wp-content/plugins/contact-form-to-any-api/admin/partials/cf7-to-any-api-admin-entries.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/contact-form-to-any-api/admin/partials/cf7-to-any-api-admin-display-docs.php:5
- > PHP Fatal error
Uncaught Error: Class 'Cf7_To_Any_Api' not found in wp-content/plugins/contact-form-to-any-api/admin/partials/cf7-to-any-api-admin-display.php:15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/contact-form-to-any-api/includes/class-cf7-to-any-api-log-list-table.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-to-any-api/includes/class-cf7-to-any-api-log-list-table.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-to-any-api/includes/class-cf7-to-any-api-log-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/contact-form-to-any-api/admin/partials/cf7-to-any-api-feedback.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% 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
8 plugin tags: lead, contact form, contact form 7, pro, rest api...
contact-form-to-any-api/cf7-to-any-api.php 92% from 13 tests
"Contact Form to Any API" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-to-any-api.php" instead of "cf7-to-any-api.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,905 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 262 | 671 | 1,438 |
CSS | 2 | 15 | 12 | 342 |
JavaScript | 2 | 15 | 56 | 125 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 18 | 28.12% |
▷ Public methods | 59 | 92.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/entries.png | 105.54KB | 40.57KB | ▼ 61.56% |
admin/images/rating.png | 93.92KB | 30.87KB | ▼ 67.13% |
admin/images/logs.png | 106.62KB | 44.29KB | ▼ 58.46% |