78% cf7-notie

Code Review | CF7 Notie

WordPress plugin CF7 Notie scored78%from 54 tests.

About plugin

  • Plugin page: cf7-notie
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: Jan 3, 2016
  • Number of updates: 8
  • Update frequency: every 5.6 days
  • Top authors: fabbricaweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,701 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.36ms] Passed 4 tests

An overview of server-side resources used by CF7 Notie
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.40 ▼3.50
Dashboard /wp-admin3.39 ▲0.0952.65 ▲2.96
Posts /wp-admin/edit.php3.50 ▲0.1549.98 ▲0.06
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.22 ▼6.36
Media Library /wp-admin/upload.php3.31 ▲0.0840.52 ▲0.36
Contact Form 7 Notie /wp-admin/options-general.php?page=cf7_notie3.2834.59

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/cf7-notie/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for CF7 Notie
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲16613.79 ▼0.496.13 ▲4.0641.79 ▼7.22
Dashboard /wp-admin2,246 ▲405.08 ▼0.73105.19 ▲0.2742.06 ▼5.24
Posts /wp-admin/edit.php2,106 ▲62.33 ▲0.3035.53 ▼0.4032.31 ▼4.84
Add New Post /wp-admin/post-new.php1,549 ▲1823.52 ▲0.39673.66 ▼28.2340.41 ▼22.54
Media Library /wp-admin/upload.php1,423 ▲264.46 ▲0.2592.46 ▼16.5045.73 ▼3.38
Contact Form 7 Notie /wp-admin/options-general.php?page=cf7_notie1,1442.3960.0229.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cf7-notie/public/partials/cf7_notie-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-notie/admin/partials/cf7_notie-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wpcf7, notie, contact form 7 addon, contact form 7, contact form

cf7-notie/cf7_notie.php 85% from 13 tests

The entry point to "CF7 Notie" version 1.0 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 name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cf7-notie.php" instead of "cf7_notie.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin817 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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 were not PNG files found in your plugin