74% cf7-ui-slider

Code Review | Cf7 UI slider

WordPress plugin Cf7 UI slider scored74%from 54 tests.

About plugin

  • Plugin page: cf7-ui-slider
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Apr 6, 2016
  • Latest release: Oct 12, 2017
  • Number of updates: 19
  • Update frequency: every 29.2 days
  • Top authors: ayush.malakar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /6,566 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.72ms] Passed 4 tests

A check of server-side resources used by Cf7 UI slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.06 ▼37.18
Dashboard /wp-admin2.08 ▼1.227.25 ▼43.77
Posts /wp-admin/edit.php2.08 ▼1.276.33 ▼44.32
Add New Post /wp-admin/post-new.php2.08 ▼3.806.24 ▼101.59
Media Library /wp-admin/upload.php2.08 ▼1.155.89 ▼32.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Cf7 UI slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.57 ▼0.735.29 ▲3.4043.43 ▲0.34
Dashboard /wp-admin2,210 ▲225.79 ▲0.89104.44 ▼14.1438.39 ▼7.21
Posts /wp-admin/edit.php2,099 ▲102.01 ▼0.0034.90 ▼3.5335.15 ▲2.38
Add New Post /wp-admin/post-new.php1,423 ▼9622.36 ▼0.65578.50 ▼102.8861.47 ▲12.55
Media Library /wp-admin/upload.php1,392 ▲74.32 ▲0.0097.59 ▼4.6938.63 ▼7.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'SLIDER_UI_TAG' not found
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cf7-ui-slider/css/index.php
    • > /wp-content/plugins/cf7-ui-slider/cf7-ui-slider.php
    • > /wp-content/plugins/cf7-ui-slider/includes/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in cf7-ui-slider/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === cf7-ui-slider === )
Please take inspiration from this readme.txt

cf7-ui-slider/cf7-ui-slider.php Passed 13 tests

The primary PHP file in "Cf7 UI slider" version 2.5 is used by WordPress to initiate all plugin functionality
59 characters long description:
A simple way to add jQuery UI Slider to your contact form 7

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,950 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2362501,517
PHP410232433

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.00
▷ Minimum class complexity6.00
▷ Maximum class complexity15.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected