Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼140.82ms] Passed 4 tests
Analyzing server-side resources used by Mobilize Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 34.25 ▼3.01 |
Dashboard /wp-admin | 3.13 ▲0.08 | 45.69 ▼1.13 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 46.73 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 90.10 ▼560.17 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 38.90 ▲5.13 |
Mobilize Contact Form 7 /wp-admin/options-general.php?page=ptmbg_mobilize_cf7 | 3.04 | 34.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ptmbg_mobilize_cf7_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mobilize Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,733 ▲137 | 15.93 ▲0.19 | 8.98 ▲0.08 | 46.29 ▼8.43 |
Dashboard /wp-admin | 3,015 ▲78 | 5.91 ▼0.26 | 146.68 ▼17.25 | 123.61 ▲19.99 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.71 ▼0.01 | 67.34 ▼0.48 | 97.61 ▲12.79 |
Add New Post /wp-admin/post-new.php | 1,523 ▲23 | 18.59 ▼0.03 | 389.89 ▼9.81 | 101.47 ▼6.84 |
Media Library /wp-admin/upload.php | 1,856 ▲108 | 5.04 ▲0.04 | 155.14 ▲6.66 | 121.06 ▲4.61 |
Mobilize Contact Form 7 /wp-admin/options-general.php?page=ptmbg_mobilize_cf7 | 1,282 | 2.05 | 59.01 | 63.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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 everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: forms, cf7, form, contact form 7
mobilize-contact-form-7/index.php 92% from 13 tests
"Mobilize Contact Form 7" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobilize-contact-form-7.php" instead of "index.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 plugin713 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 17 | 713 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 6.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin