79% cf7-summary-and-print

Code Review | Contact Form 7 Summary and Print

WordPress plugin Contact Form 7 Summary and Print scored79%from 54 tests.

About plugin

  • Plugin page: cf7-summary-and-p...
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2019
  • Latest release: Mar 18, 2023
  • Number of updates: 70
  • Update frequency: every 20.9 days
  • Top authors: Muhammad Rehman (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /7,735 total downloads


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)
PageMemory (MB)CPU Time (ms)
Home /9.19 ▲5.7371.32 ▲33.09
Dashboard /wp-admin9.21 ▲5.9172.61 ▲27.85
Posts /wp-admin/edit.php9.21 ▲5.8581.28 ▲33.10
Add New Post /wp-admin/post-new.php9.84 ▲3.96101.31 ▲14.31
Media Library /wp-admin/upload.php9.21 ▲5.9873.16 ▲39.13
Freemius Debug [v.] /wp-admin/admin.php?page=freemius9.2158.18
Summary & Print /wp-admin/admin.php?page=cf7-summary-Print9.2164.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲21014.73 ▲0.371.78 ▲0.2127.89 ▼16.93
Dashboard /wp-admin2,380 ▲2006.45 ▲0.79121.13 ▲34.6941.47 ▼2.28
Posts /wp-admin/edit.php2,314 ▲2143.69 ▲1.7257.31 ▲18.8639.58 ▲4.45
Add New Post /wp-admin/post-new.php1,711 ▲18522.12 ▼0.98641.64 ▼57.3838.31 ▼26.17
Media Library /wp-admin/upload.php1,445 ▲454.30 ▲0.1080.67 ▼28.3544.07 ▼3.61
Freemius Debug [v.] /wp-admin/admin.php?page=freemius1,2563.5238.4426.20
Summary & Print /wp-admin/admin.php?page=cf7-summary-Print1,1553.3147.7889.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.64
Average class complexity90.82
▷ Minimum class complexity1.00
▷ Maximum class complexity3,079.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
▷ Static methods19615.40%
▷ Public methods88469.44%
▷ Protected methods171.34%
▷ Private methods37229.22%
▷ Named functions94100.00%
▷ Anonymous functions00.00%
▷ Global constants10569.08%
▷ Class constants4730.92%
▷ Public constants47100.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
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/contact-form-7-summary-and-print-pro.png3.12KB2.85KB▼ 8.43%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/cf7-summary-and-print.png3.12KB2.85KB▼ 8.43%