79% submission-history-contact-form-7-addon

Code Review | Submission History - Contact Form 7 Addon

WordPress plugin Submission History - Contact Form 7 Addon scored 79% from 54 tests.

About plugin

  • Plugin page: submission-histor...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 5.8.1
  • First release: Mar 26, 2021
  • Latest release: Mar 26, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: onekeydone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 143 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼130.01ms] Passed 4 tests

A check of server-side resources used by Submission History - Contact Form 7 Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.19 ▲0.4863.37 ▲34.43
Dashboard /wp-admin3.33 ▲0.2871.25 ▲3.93
Posts /wp-admin/edit.php3.38 ▲0.2663.34 ▼2.30
Add New Post /wp-admin/post-new.php5.63 ▲0.19114.55 ▼534.51
Media Library /wp-admin/upload.php3.21 ▲0.2151.41 ▲12.84
Analytics /wp-admin/admin.php?page=okd_cf7sh_analytics3.1948.57
Submission History /wp-admin/admin.php?page=okd_cf7sh_history3.2352.45

Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: 3 new tables, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Submission History - Contact Form 7 Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,729 ▲9215.78 ▲0.1311.11 ▼3.4650.63 ▼4.66
Dashboard /wp-admin2,973 ▲765.97 ▲0.07154.99 ▼52.68122.49 ▼11.26
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0185.56 ▲1.5493.53 ▼2.96
Add New Post /wp-admin/post-new.php1,581 ▼019.88 ▼0.31401.79 ▼29.33122.88 ▼1.08
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.02177.89 ▲8.19128.36 ▲1.06
Analytics /wp-admin/admin.php?page=okd_cf7sh_analytics1,0682.9691.2083.90
Submission History /wp-admin/admin.php?page=okd_cf7sh_history1,0482.4063.5086.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_cf7sh_okd_submission_history
    • wp_cf7_okd_analytics
    • wp_cf7sh_okd_submission_history_entry
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • okd_cf7sh_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

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 on the user side


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
9 plugin tags: form, analytics, save data, database, contact form 7...

submission-history-contact-form-7-addon/main.php 77% from 13 tests

This is the main PHP file of "Submission History - Contact Form 7 Addon" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("submission-history-contact-form-7-addon.php" instead of "main.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 201 characters long)

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
Good job! No executable or dangerous file extensions detected2,256 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File14249102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods1517.86%
▷ Public methods7386.90%
▷ Protected methods00.00%
▷ Private methods1113.10%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugin/css/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
assets/plugin/css/images/ui-icons_777620_256x240.png4.51KB4.18KB▼ 7.28%
assets/plugin/image/lite_analytics_screen.png64.19KB31.92KB▼ 50.26%
assets/plugin/css/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
assets/plugin/css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%