Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼275.14ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7 Material Design
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 51.96 ▲19.83 |
Dashboard /wp-admin | 3.07 ▲0.01 | 40.20 ▲0.36 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.08 ▲6.02 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.39 ▼1,103.42 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 33.88 ▼3.51 |
Contact /wp-admin/admin.php?page=mdcf7_contact_submenu | 2.98 | 27.57 |
Help /wp-admin/admin.php?page=mdcf7_help_submenu | 2.99 | 25.58 |
Material CF7 /wp-admin/admin.php?page=mdcf7_options | 2.99 | 40.46 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7 Material Design
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,908 ▲302 | 17.13 ▲1.27 | 21.70 ▲13.43 | 35.23 ▼8.99 |
Dashboard /wp-admin | 3,008 ▲158 | 6.58 ▲0.74 | 141.62 ▲6.55 | 123.62 ▲23.52 |
Posts /wp-admin/edit.php | 2,785 ▲79 | 2.77 ▲0.07 | 66.73 ▲0.81 | 126.16 ▲37.27 |
Add New Post /wp-admin/post-new.php | 1,631 ▼222 | 18.47 ▼0.67 | 372.02 ▼13.77 | 102.22 ▼5.18 |
Media Library /wp-admin/upload.php | 1,854 ▲82 | 5.17 ▲0.16 | 131.49 ▼27.73 | 104.59 ▼11.79 |
Contact /wp-admin/admin.php?page=mdcf7_contact_submenu | 1,113 | 2.58 | 59.73 | 94.79 |
Help /wp-admin/admin.php?page=mdcf7_help_submenu | 2,696 | 2.65 | 66.10 | 99.13 |
Material CF7 /wp-admin/admin.php?page=mdcf7_options | 4,494 | 4.25 | 130.14 | 90.17 |
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
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-material-design/inc/menu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-material-design/inc/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-material-design/inc/functions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== cf7-material-design ===
)
cf7-material-design/mdcf7_form.php 92% from 13 tests
The main PHP file in "Contact Form 7 Material Design" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cf7-material-design.php" instead of "mdcf7_form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin9,954 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 2 | 726 | 208 | 4,326 |
JavaScript | 3 | 857 | 1,508 | 3,862 |
CSS | 6 | 20 | 35 | 950 |
PHP | 4 | 51 | 17 | 816 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/thumbnail.png | 8.18KB | 3.51KB | ▼ 57.11% |
assets/banner-1544x500.png | 94.18KB | 42.09KB | ▼ 55.31% |
assets/icon-128x128.png | 11.17KB | 5.32KB | ▼ 52.36% |
assets/banner-772x250.png | 40.37KB | 17.92KB | ▼ 55.60% |
assets/icon-256x256.png | 28.44KB | 12.56KB | ▼ 55.83% |