84% save-cf7-entry

Code Review | Save CF7 Entry

WordPress plugin Save CF7 Entry scored84%from 54 tests.

About plugin

  • Plugin page: save-cf7-entry
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2023
  • Latest release: Nov 1, 2023
  • Number of updates: 3
  • Update frequency: every 11.7 days
  • Top authors: nomanakram2590 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /44 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼5.00ms] Passed 4 tests

A check of server-side resources used by Save CF7 Entry
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1737.20 ▼2.81
Dashboard /wp-admin3.35 ▲0.0544.15 ▼8.32
Posts /wp-admin/edit.php3.41 ▲0.0448.20 ▼1.02
Add New Post /wp-admin/post-new.php5.94 ▲0.0488.96 ▼7.84
Media Library /wp-admin/upload.php3.28 ▲0.0435.65 ▼0.05
Form Entries Listing /wp-admin/admin.php?page=form-entries3.2232.36

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: 2 new tables, 6 new options
New tables
wp_cf7_entries
wp_cf7_entry_meta
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Save CF7 Entry
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.34 ▼0.001.66 ▲0.1838.59 ▼0.57
Dashboard /wp-admin2,212 ▲325.58 ▼0.0294.05 ▲2.1541.20 ▼0.03
Posts /wp-admin/edit.php2,114 ▲112.03 ▲0.0638.49 ▲3.7834.41 ▲0.22
Add New Post /wp-admin/post-new.php1,538 ▲1223.61 ▲0.56679.28 ▲0.9855.08 ▲14.43
Media Library /wp-admin/upload.php1,411 ▲84.12 ▼0.0398.97 ▲3.1241.21 ▼3.67
Form Entries Listing /wp-admin/admin.php?page=form-entries6811.126.5513.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=form-entries
    • > Notice in wp-content/plugins/save-cf7-entry/controller/SCF7EContactController.php+42
    Undefined index: form

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: contact form backup, save contact forms, contact form enteirs

save-cf7-entry/save-cf7-entry.php Passed 13 tests

The entry point to "Save CF7 Entry" version 1.0.1 is a PHP file that has certain tags in its header comment area
68 characters long description:
This is a plugin that saves contact form 7 entries into the database

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected539 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP64313320
JavaScript1311170
CSS27049

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity9.50
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/assets/images/sort_asc.png0.16KB0.25KB0.00%
lib/assets/images/sort_desc.png0.15KB0.25KB0.00%
lib/assets/images/sort_asc_disabled.png0.14KB0.25KB0.00%
lib/assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%
lib/assets/images/sort_both.png0.20KB0.29KB0.00%