78% integrate-cf7-thecheckerco

Code Review | Integrate Contact Form 7 with TheChecker.co

WordPress plugin Integrate Contact Form 7 with TheChecker.co scored78%from 54 tests.

About plugin

  • Plugin page: integrate-cf7-the...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Apr 24, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: jaworowi.cz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 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.04MB] [CPU: ▼7.21ms] Passed 4 tests

This is a short check of server-side resources used by Integrate Contact Form 7 with TheChecker.co
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0226.39 ▼16.19
Dashboard /wp-admin3.37 ▲0.0747.37 ▼5.16
Posts /wp-admin/edit.php3.42 ▲0.0654.25 ▼1.98
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.39 ▼5.51
Media Library /wp-admin/upload.php3.29 ▲0.0644.28 ▲6.29
TheChecker.co CF7 /wp-admin/themes.php?page=jcz_thechecker3.2330.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integrate Contact Form 7 with TheChecker.co
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.14 ▼0.221.88 ▲0.2443.09 ▼10.16
Dashboard /wp-admin2,202 ▲225.59 ▼0.0590.51 ▼2.8642.24 ▼1.52
Posts /wp-admin/edit.php2,104 ▲11.95 ▼0.0338.87 ▼0.3135.75 ▼1.30
Add New Post /wp-admin/post-new.php1,536 ▲922.68 ▼0.49638.25 ▼64.7752.03 ▼5.79
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.02110.15 ▲3.5147.12 ▼0.47
TheChecker.co CF7 /wp-admin/themes.php?page=jcz_thechecker8221.9924.2824.59

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/themes.php?page=jcz_thechecker
    • > Notice in wp-content/plugins/integrate-cf7-thecheckerco/thechecker.php+305
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/integrate-cf7-thecheckerco/thechecker.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Example Form), #2 (Options Panel), #3 (Contact Form 7 form edit)
You can take inspiration from this readme.txt

integrate-cf7-thecheckerco/thechecker.php 92% from 13 tests

"Integrate Contact Form 7 with TheChecker.co" version 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integrate-cf7-thecheckerco.php" instead of "thechecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin243 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19011243

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions12
▷ Named functions12100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
pr_pk.PNG10.72KB6.27KB▼ 41.49%