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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.80ms] Passed 4 tests
Server-side resources used by Post My CF7 Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.15 ▲3.24 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.76 ▼16.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.23 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.80 ▲1.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.26 ▲1.95 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Post My CF7 Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.39 | 1.76 ▲0.20 | 44.62 ▲5.36 |
Dashboard /wp-admin | 2,198 ▲17 | 5.56 ▼0.15 | 87.59 ▼22.18 | 36.75 ▼3.03 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.01 | 39.31 ▼2.07 | 34.98 ▼4.92 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 25.19 ▲2.16 | 602.41 ▼74.16 | 74.49 ▲21.69 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.23 ▲0.09 | 102.89 ▲3.91 | 44.24 ▼2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-my-contact-form-7/includes/class-cf72post-mapping-factory.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-my-contact-form-7/includes/mapper/class-c2p-custom-post-mapper.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-my-contact-form-7/includes/mapper/class-c2p-system-post-mapper.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/post-my-contact-form-7/includes/partials/cf7-2-post-script.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: contact form 7 module, form to post, contact form 7 extension, custom post, contact form 7 to post...
post-my-contact-form-7/cf7-2-post.php 92% from 13 tests
Analyzing the main PHP file in "Post My CF7 Form" version 6.0.5
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-my-contact-form-7.php" instead of "cf7-2-post.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
Good job! No executable or dangerous file extensions detected20,112 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 2,779 | 1,193 | 11,216 |
PHP | 29 | 253 | 2,497 | 4,376 |
CSS | 21 | 96 | 10 | 2,067 |
SVG | 2 | 2 | 2 | 1,547 |
PO File | 2 | 212 | 240 | 557 |
LESS | 6 | 29 | 0 | 181 |
Markdown | 1 | 51 | 0 | 126 |
JSON | 2 | 0 | 0 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 45.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 4.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 14 | 8.97% |
▷ Public methods | 131 | 83.97% |
▷ Protected methods | 17 | 10.90% |
▷ Private methods | 8 | 5.13% |
Functions | 18 | |
▷ Named functions | 10 | 55.56% |
▷ Anonymous functions | 8 | 44.44% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
5 PNG files occupy 0.30MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/banner-772x250.png | 87.97KB | 29.72KB | ▼ 66.22% |
assets/icons/icon-128x128.png | 56.81KB | 10.78KB | ▼ 81.03% |
admin/css/image/php-sprite.png | 3.78KB | 3.05KB | ▼ 19.29% |
assets/select2/css/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/icons/icon-256x256.png | 161.04KB | 38.29KB | ▼ 76.22% |