84% cf7-skins-innozilla

Code Review | Innozilla Skins for Contact Form 7

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

About plugin

  • Plugin page: cf7-skins-innozilla
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2019
  • Latest release: Oct 4, 2023
  • Number of updates: 97
  • Update frequency: every 15.7 days
  • Top authors: innozilla (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /20,770 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 gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼10.16ms] Passed 4 tests

Analyzing server-side resources used by Innozilla Skins for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1422.57 ▼20.12
Dashboard /wp-admin3.46 ▲0.1250.30 ▼15.28
Posts /wp-admin/edit.php3.57 ▲0.2251.31 ▼1.71
Add New Post /wp-admin/post-new.php6.06 ▲0.1796.33 ▼3.52
Media Library /wp-admin/upload.php3.38 ▲0.1541.27 ▲1.70
ICF7 Skins Settings /wp-admin/admin.php?page=icf7s-settings3.3534.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Innozilla Skins for Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲18814.14 ▼0.246.25 ▲4.4240.46 ▼1.71
Dashboard /wp-admin2,229 ▲415.11 ▲0.24101.42 ▼14.6741.69 ▼3.60
Posts /wp-admin/edit.php2,111 ▲222.28 ▲0.2338.83 ▼0.3935.68 ▲1.55
Add New Post /wp-admin/post-new.php1,536 ▲823.24 ▲4.75670.54 ▲5.0153.07 ▼0.97
Media Library /wp-admin/upload.php1,414 ▲264.48 ▲0.3397.34 ▼7.7841.21 ▼4.84
ICF7 Skins Settings /wp-admin/admin.php?page=icf7s-settings8321.8125.2432.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cf7-skins-innozilla/cf7-skins-innozilla.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ICF7S_Exception' not found in wp-content/plugins/cf7-skins-innozilla/classes/exceptions/Missing_Dependencies_Exception.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-skins-innozilla/includes/initialize.php:20
    • > PHP Fatal error
      require_once(): Failed opening required 'ICF7S_PLUGIN_DIR/includes/initialize.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-skins-innozilla/includes/init.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-skins-innozilla/includes/icf7s-admin.php:11
    • > PHP Warning
      Use of undefined constant ICF7S_PLUGIN_DIR - assumed 'ICF7S_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-skins-innozilla/includes/init.php on line 10
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-skins-innozilla/classes/Setup.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-skins-innozilla/classes/Setup.php on line 5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-skins-innozilla/classes/Setup.php on line 5
    • > PHP Warning
      require_once(ICF7S_PLUGIN_DIR/includes/initialize.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-skins-innozilla/includes/init.php on line 10

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #7 (Default Contact form 7 code format) image missing
You can take inspiration from this readme.txt

cf7-skins-innozilla/cf7-skins-innozilla.php 92% from 13 tests

This is the main PHP file of "Innozilla Skins for Contact Form 7" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,853 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33702101,977
PHP121961471,222
CSS37133654

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.83
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up 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/background.png4.96KB2.59KB▼ 47.82%