Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.36MB] [CPU: ▲27.09ms] 75% from 4 tests
A check of server-side resources used by Contact Form 7 Summary and Print
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.36MB on /wp-admin/admin.php?page=cf7-summary-Print)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.19 ▲5.73 | 71.32 ▲33.09 |
Dashboard /wp-admin | 9.21 ▲5.91 | 72.61 ▲27.85 |
Posts /wp-admin/edit.php | 9.21 ▲5.85 | 81.28 ▲33.10 |
Add New Post /wp-admin/post-new.php | 9.84 ▲3.96 | 101.31 ▲14.31 |
Media Library /wp-admin/upload.php | 9.21 ▲5.98 | 73.16 ▲39.13 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 9.21 | 58.18 |
Summary & Print /wp-admin/admin.php?page=cf7-summary-Print | 9.21 | 64.30 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 187 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
fs_accounts |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Contact Form 7 Summary and Print: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 14.73 ▲0.37 | 1.78 ▲0.21 | 27.89 ▼16.93 |
Dashboard /wp-admin | 2,380 ▲200 | 6.45 ▲0.79 | 121.13 ▲34.69 | 41.47 ▼2.28 |
Posts /wp-admin/edit.php | 2,314 ▲214 | 3.69 ▲1.72 | 57.31 ▲18.86 | 39.58 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,711 ▲185 | 22.12 ▼0.98 | 641.64 ▼57.38 | 38.31 ▼26.17 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.30 ▲0.10 | 80.67 ▼28.35 | 44.07 ▼3.61 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 1,256 | 3.52 | 38.44 | 26.20 |
Summary & Print /wp-admin/admin.php?page=cf7-summary-Print | 1,155 | 3.31 | 47.78 | 89.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/cf7-summary-and-print/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- fs_active_plugins
- fs_accounts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
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 90% 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
5 plugin tags: contact form print form, cf7 summary, form summary, cf7 form summary, view summary
cf7-summary-and-print/cf7-form-summary.php 77% from 13 tests
"Contact Form 7 Summary and Print" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-summary-and-print.php" instead of "cf7-form-summary.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 275 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin33,805 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 8,049 | 17,233 | 33,152 |
JavaScript | 7 | 93 | 143 | 422 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 15 | 0 | 0 | 17 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 90.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,273 | |
▷ Static methods | 196 | 15.40% |
▷ Public methods | 884 | 69.44% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.22% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/contact-form-7-summary-and-print-pro.png | 3.12KB | 2.85KB | ▼ 8.43% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/cf7-summary-and-print.png | 3.12KB | 2.85KB | ▼ 8.43% |