68% custom-skins-contact-form-7

Code Review | Custom Skins Contact Form 7

WordPress plugin Custom Skins Contact Form 7 scored68%from 54 tests.

About plugin

  • Plugin page: custom-skins-cont...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Jan 8, 2016
  • Number of updates: 10
  • Update frequency: every 13.8 days
  • Top authors: mahendrapatidar.mp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /19,189 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.84MB] [CPU: ▼35.64ms] Passed 4 tests

Analyzing server-side resources used by Custom Skins Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.62 ▼1.30
Dashboard /wp-admin3.10 ▼0.2027.70 ▼22.11
Posts /wp-admin/edit.php3.10 ▼0.2523.85 ▼25.89
Add New Post /wp-admin/post-new.php3.10 ▼2.7824.00 ▼77.71
Media Library /wp-admin/upload.php3.10 ▼0.1322.03 ▼16.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
cf7cs
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Skins Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.28 ▼0.091.70 ▼0.2340.10 ▼6.86
Dashboard /wp-admin2,204 ▲275.48 ▼0.1290.39 ▼3.9543.07 ▲3.33
Posts /wp-admin/edit.php2,112 ▲91.99 ▼0.0138.54 ▲4.1945.88 ▲10.69
Add New Post /wp-admin/post-new.php1,437 ▼8922.31 ▼1.20598.00 ▼80.1956.50 ▲0.41
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.1098.32 ▼19.3141.43 ▼7.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/custom-skins-contact-form-7/custom-skins-contact-form-7.php+88
    Use of undefined constant WPCF7_PLUGIN_BASENAME - assumed 'WPCF7_PLUGIN_BASENAME' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • cf7cs
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-skins-contact-form-7/js/cf7csjs.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-skins-contact-form-7/custom-skins-contact-form-7.php:40
    • > PHP Warning
      Use of undefined constant CF7CS_PLUGIN_URI - assumed 'CF7CS_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-skins-contact-form-7/structure.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/custom-skins-contact-form-7/structure.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

custom-skins-contact-form-7/custom-skins-contact-form-7.php Passed 13 tests

The main PHP file in "Custom Skins Contact Form 7" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
This Plugin for Customization of Contact Form 7 skins.

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
Everything looks great! No dangerous files found in this plugin1,503 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP316411,464
CSS10039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/done.png1.44KB0.56KB▼ 61.30%