Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.25ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7 to REST Call
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.41 ▲1.20 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.88 ▼1.47 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 51.76 ▲5.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.12 ▼6.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.88 ▲2.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_CF7RESTPlugin_SUBMITS |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
CF7RESTPlugin__installed |
widget_recent-posts |
theysaidso_admin_options |
CF7RESTPlugin__metatdata |
CF7RESTPlugin__displayName |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 to REST Call
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.15 ▼1.15 | 1.85 ▲0.20 | 43.34 ▲1.11 |
Dashboard /wp-admin | 2,225 ▲34 | 4.86 ▼0.22 | 107.25 ▲2.56 | 43.63 ▼0.46 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 1.98 ▼0.03 | 37.18 ▲0.69 | 33.54 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.20 ▲5.51 | 659.63 ▲9.17 | 56.01 ▼7.73 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.31 ▲0.13 | 97.85 ▼10.91 | 42.25 ▼3.47 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-form-7-to-rest-call/CF7RESTOptionsManager.php:134
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Version format is invalid
contact-form-7-to-rest-call/contact-form-7-db.php 85% from 13 tests
Analyzing the main PHP file in "Contact Form 7 to REST Call" version 1.0
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 178 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-7-to-rest-call.php" instead of "contact-form-7-db.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin444 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 120 | 212 | 444 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 29 | 65.91% |
▷ Protected methods | 15 | 34.09% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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