84% contact-form-7-sequence-generator

Code Review | Contact Form 7 Sequence Generator

WordPress plugin Contact Form 7 Sequence Generator scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-se...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2015
  • Latest release: Jan 9, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: gutobenn (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Contact Form 7 Sequence Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.56 ▲2.37
Dashboard /wp-admin3.31 ▼0.0343.57 ▼11.85
Posts /wp-admin/edit.php3.36 ▲0.0145.06 ▼2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.86 ▼19.12
Media Library /wp-admin/upload.php3.23 ▲0.0136.00 ▼4.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form 7 Sequence Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.161.69 ▼0.1639.15 ▲0.64
Dashboard /wp-admin2,206 ▲144.89 ▼0.0196.70 ▼19.6338.00 ▼5.94
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0242.90 ▲8.5934.61 ▲4.46
Add New Post /wp-admin/post-new.php1,540 ▲2623.43 ▲5.66600.50 ▼56.0348.02 ▼0.84
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0399.68 ▲1.5241.78 ▼0.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/contact-form-7-sequence-generator/contact-form-7-sequence-generator.php

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: generator, contact form, sequence

contact-form-7-sequence-generator/contact-form-7-sequence-generator.php Passed 13 tests

Analyzing the main PHP file in "Contact Form 7 Sequence Generator" version 1.0
55 characters long description:
Generate a sequence for use with a Contact Form 7 form.

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
There were no executable files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102919

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin