83% cf7-for-elementor

Code Review | Cf7 For Elementor

WordPress plugin Cf7 For Elementor scored83%from 54 tests.

About plugin

  • Plugin page: cf7-for-elementor
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 30, 2020
  • Latest release: Oct 28, 2022
  • Number of updates: 5
  • Update frequency: every 170.2 days
  • Top authors: imranhosain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,203 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Cf7 For Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.66 ▼2.99
Dashboard /wp-admin3.31 ▼0.0449.60 ▼15.74
Posts /wp-admin/edit.php3.36 ▲0.0049.12 ▲2.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.63 ▼3.93
Media Library /wp-admin/upload.php3.23 ▲0.0036.38 ▼1.16

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cf7 For Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.26 ▼1.052.26 ▲0.5045.21 ▲2.18
Dashboard /wp-admin2,227 ▲365.86 ▲0.83100.64 ▼14.2241.89 ▼0.95
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0437.32 ▼0.8439.88 ▲5.94
Add New Post /wp-admin/post-new.php1,548 ▲2923.31 ▼0.00682.65 ▲16.1056.46 ▼12.40
Media Library /wp-admin/upload.php1,403 ▲154.21 ▼0.0499.26 ▼3.5145.58 ▼1.39

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/cf7-for-elementor/cf7-for-elementor.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

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

The entry point to "Cf7 For Elementor" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to 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
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected438 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27157401
CSS12037

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods212.50%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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