84% cfs-cf7

Code Review | CFS - Contact Form 7 Field

WordPress plugin CFS - Contact Form 7 Field scored84%from 54 tests.

About plugin

  • Plugin page: cfs-cf7
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Mar 8, 2018
  • Number of updates: 16
  • Update frequency: every 32.3 days
  • Top authors: felipeelia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.05ms] Passed 4 tests

Server-side resources used by CFS - Contact Form 7 Field
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.44 ▲8.39
Dashboard /wp-admin3.31 ▲0.0052.19 ▼2.16
Posts /wp-admin/edit.php3.36 ▲0.0051.65 ▲4.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.89 ▼3.11
Media Library /wp-admin/upload.php3.23 ▲0.0037.54 ▲5.13

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by CFS - Contact Form 7 Field
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.112.30 ▲0.5243.96 ▲2.82
Dashboard /wp-admin2,215 ▲124.87 ▼1.04100.96 ▼15.2841.05 ▼5.80
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0139.89 ▲4.0634.75 ▲0.39
Add New Post /wp-admin/post-new.php1,545 ▲1923.50 ▲5.98658.82 ▼16.8656.34 ▲2.17
Media Library /wp-admin/upload.php1,400 ▼34.21 ▲0.03104.05 ▲8.1244.56 ▼2.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'cfs_field' not found in wp-content/plugins/cfs-cf7/cfs_cf7.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'cfs_field' not found in wp-content/plugins/cfs-cf7/trunk/cfs_cf7.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cfs-cf7/trunk/cfs-cf7.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cfs-cf7/cfs-cf7.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: custom field suite, cf7, cfs, contact form 7

cfs-cf7/cfs-cf7.php Passed 13 tests

The main file in "CFS - Contact Form 7 Field" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Custom Field Suite addon for Contact Form 7 Field

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected80 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3121180

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin