84% contact-form-7-skins

Code Review | CF7 Skins for Contact Form 7

WordPress plugin CF7 Skins for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-skins
  • Plugin version: 2.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2015
  • Latest release: Aug 14, 2023
  • Number of updates: 72
  • Update frequency: every 42.4 days
  • Top authors: buzztone (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

20,000+ active /543,763 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.72ms] Passed 4 tests

Analyzing server-side resources used by CF7 Skins for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.28 ▲0.76
Dashboard /wp-admin3.33 ▼0.0245.90 ▼18.53
Posts /wp-admin/edit.php3.38 ▲0.0244.34 ▼3.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.34 ▼20.03
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▼4.90

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 172 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
cf7skins_activated
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for CF7 Skins for Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.22 ▼0.131.72 ▲0.0544.20 ▲1.39
Dashboard /wp-admin2,206 ▲325.56 ▼0.0083.22 ▼17.3039.81 ▼7.67
Posts /wp-admin/edit.php2,111 ▲111.95 ▼0.1134.19 ▼2.8433.55 ▼3.24
Add New Post /wp-admin/post-new.php1,539 ▲223.33 ▲5.07634.85 ▼18.0753.62 ▼14.73
Media Library /wp-admin/upload.php1,414 ▲174.20 ▼0.1495.61 ▼31.5042.87 ▼8.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • cf7skins_activated
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CF7_Skins_Admin' not found in wp-content/plugins/contact-form-7-skins/includes/tab.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-7-skins/skins/templates/fieldset-basic/fieldset-basic.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-7-skins/skins/templates/fieldset-in-fieldset/fieldset-in-fieldset.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-skins/includes/cf7-connect.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-7-skins/skins/templates/contact/contact.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'CF7_Skin' not found in wp-content/plugins/contact-form-7-skins/includes/template.php:11
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/contact-form-7-skins/includes/admin-notice.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-7-skins/skins/templates/fieldset-multiple/fieldset-multiple.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/contact-form-7-skins/skins/templates/testimonial/testimonial.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-skins/includes/front-visual.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: contact form 7 addon, contact form, contact form 7 theme, contact form 7 style, contact form 7

contact-form-7-skins/index.php 92% from 13 tests

The principal PHP file in "CF7 Skins for Contact Form 7" v. 2.6.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-7-skins.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin16,986 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
CSS281,7771,5357,132
PHP308651,8333,404
PO File41,1461,5832,591
JSON12001,881
SVG1001,180
JavaScript119277798

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity40.85
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods117
▷ Static methods119.40%
▷ Public methods11497.44%
▷ Protected methods00.00%
▷ Private methods32.56%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
72 PNG files occupy 2.52MB with 1.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/styles/solar/thumbnail.png28.46KB9.30KB▼ 67.33%
skins/templates/contact/modal.png16.14KB6.90KB▼ 57.25%
skins/styles/golden-brown/modal.png70.14KB24.49KB▼ 65.08%
skins/styles/strawberry/modal.png60.89KB22.54KB▼ 62.97%
skins/templates/registration/thumbnail.png22.42KB7.64KB▼ 65.92%