10% vestorly-contact-form-7-integration

Code Review | Vestorly Contact Form 7 Integration

WordPress plugin Vestorly Contact Form 7 Integration scored10%from 54 tests.

About plugin

  • Plugin page: vestorly-contact-...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 5, 2019
  • Latest release: Nov 7, 2019
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: vestorly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/vestorly-contact-form-7-integration/service.php+80
    Uncaught Error: Class 'WPCF7_Service' not found in wp-content/plugins/vestorly-contact-form-7-integration/service.php:80
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.03ms] Passed 4 tests

Server-side resources used by Vestorly Contact Form 7 Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.09 ▼1.82
Dashboard /wp-admin3.31 ▼0.0442.47 ▼13.31
Posts /wp-admin/edit.php3.36 ▲0.0042.52 ▼4.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.09 ▼16.49
Media Library /wp-admin/upload.php3.23 ▲0.0034.75 ▲2.31

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Vestorly Contact Form 7 Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.001.62 ▼0.0742.90 ▲1.65
Dashboard /wp-admin2,198 ▲215.61 ▼0.0183.47 ▼1.8137.12 ▼2.65
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0335.27 ▲0.0135.31 ▲2.69
Add New Post /wp-admin/post-new.php1,531 ▲522.94 ▼0.23669.12 ▲38.3450.24 ▼1.27
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.0293.22 ▲0.0843.34 ▼0.17

Uninstaller [IO: ▲0.02MB] [DB: ▲0.07MB] 25% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Error in wp-content/plugins/vestorly-contact-form-7-integration/service.php+80
    Uncaught Error: Class 'WPCF7_Service' not found in wp-content/plugins/vestorly-contact-form-7-integration/service.php:80
    Stack trace:
    #0 wp-admin/includes/plugin.php(1257): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Incomplete uninstall procedure, leaving 3 files (0.02MB) in the plugin directory
    • (new file) README.md
    • (new file) service.php
    • (new file) readme.txt
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vestorly-contact-form-7-integration/service.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

vestorly-contact-form-7-integration/service.php 85% from 13 tests

"Vestorly Contact Form 7 Integration" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("vestorly-contact-form-7-integration.php" instead of "service.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin379 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16512377
Markdown1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1161.11%
▷ Protected methods527.78%
▷ Private methods211.11%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.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
There are no PNG files in this plugin