78% cf7-progress-bar

Code Review | Progress Bar for Contact Form 7

WordPress plugin Progress Bar for Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: cf7-progress-bar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2019
  • Latest release: Feb 5, 2019
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: avneetk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Progress Bar for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.01 ▼6.96
Dashboard /wp-admin3.31 ▲0.0042.71 ▼4.64
Posts /wp-admin/edit.php3.36 ▲0.0046.60 ▼3.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.56 ▼9.25
Media Library /wp-admin/upload.php3.23 ▲0.0033.65 ▲4.09

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

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

Browser metrics Passed 4 tests

Progress Bar for Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.22 ▼1.172.21 ▲0.3841.08 ▼2.43
Dashboard /wp-admin2,206 ▲215.91 ▲1.01107.22 ▲4.1142.27 ▲0.03
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0139.16 ▼3.4134.45 ▼1.49
Add New Post /wp-admin/post-new.php1,537 ▲2318.37 ▲0.62599.88 ▼11.6249.58 ▲2.09
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.03100.29 ▲4.7642.88 ▼0.61

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php on line 5
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php on line 9
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php on line 9
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cf7-progress-bar/includes/wpcf7apb.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt might help

cf7-progress-bar/cf7-progress-bar.php 92% from 13 tests

The main PHP file in "Progress Bar for Contact Form 7" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin62 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3131450
CSS11311
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin