Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▲0.48 | 63.37 ▲34.43 |
Dashboard /wp-admin | 3.33 ▲0.28 | 71.25 ▲3.93 |
Posts /wp-admin/edit.php | 3.38 ▲0.26 | 63.34 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.63 ▲0.19 | 114.55 ▼534.51 |
Media Library /wp-admin/upload.php | 3.21 ▲0.21 | 51.41 ▲12.84 |
Analytics /wp-admin/admin.php?page=okd_cf7sh_analytics | 3.19 | 48.57 |
Submission History /wp-admin/admin.php?page=okd_cf7sh_history | 3.23 | 52.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 |
---|
wp_cf7sh_okd_submission_history_entry |
wp_cf7sh_okd_submission_history |
wp_cf7_okd_analytics |
New WordPress options |
---|
okd_cf7sh_version |
Browser metrics Passed 4 tests
Checking browser requirements for Submission History - Contact Form 7 Addon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,729 ▲92 | 15.78 ▲0.13 | 11.11 ▼3.46 | 50.63 ▼4.66 |
Dashboard /wp-admin | 2,973 ▲76 | 5.97 ▲0.07 | 154.99 ▼52.68 | 122.49 ▼11.26 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.01 | 85.56 ▲1.54 | 93.53 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,581 ▼0 | 19.88 ▼0.31 | 401.79 ▼29.33 | 122.88 ▼1.08 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.02 | 177.89 ▲8.19 | 128.36 ▲1.06 |
Analytics /wp-admin/admin.php?page=okd_cf7sh_analytics | 1,068 | 2.96 | 91.20 | 83.90 |
Submission History /wp-admin/admin.php?page=okd_cf7sh_history | 1,048 | 2.40 | 63.50 | 86.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
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 203 | 129 | 1,127 |
CSS | 2 | 77 | 57 | 959 |
PO File | 1 | 42 | 49 | 102 |
JavaScript | 2 | 6 | 5 | 68 |
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 code | 0.31 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 15 | 17.86% |
▷ Public methods | 73 | 86.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 13.10% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plugin/css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
assets/plugin/css/images/ui-icons_777620_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
assets/plugin/image/lite_analytics_screen.png | 64.19KB | 31.92KB | ▼ 50.26% |
assets/plugin/css/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
assets/plugin/css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |