84% cf7-style-for-elementor

Code Review | GOAT Contact Form 7 Style for Elementor

WordPress plugin GOAT Contact Form 7 Style for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: cf7-style-for-ele...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Jan 5, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: oktayafandi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by GOAT Contact Form 7 Style for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.88 ▲2.22
Dashboard /wp-admin3.31 ▲0.0151.33 ▲4.14
Posts /wp-admin/edit.php3.36 ▲0.0046.67 ▼1.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.45 ▼6.62
Media Library /wp-admin/upload.php3.24 ▲0.0035.05 ▼0.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

GOAT Contact Form 7 Style for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.76 ▲0.362.04 ▲0.4144.75 ▲1.48
Dashboard /wp-admin2,206 ▲185.04 ▲0.16106.98 ▼1.6343.91 ▲3.35
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0834.65 ▼7.2733.11 ▼5.01
Add New Post /wp-admin/post-new.php1,514 ▼1417.95 ▼5.42667.41 ▼25.3554.72 ▲1.85
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.1092.67 ▼8.4742.19 ▼2.42

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/cf7-style-for-elementor/widgets/cf7-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-style-for-elementor/cf7-style-for-elementor.php:29

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: cf7 styling, styling, form styling, elementor, contact form 7...

cf7-style-for-elementor/cf7-style-for-elementor.php 85% from 13 tests

The main PHP file in "GOAT Contact Form 7 Style for Elementor" 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: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 221 characters long)

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
Everything looks great! No dangerous files found in this plugin231 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24416231

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods228.57%
▷ Private methods114.29%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected