84% cf7-form-submission-limit-wpappsdev

Code Review | WPAppsDev - CF7 Form Submission Limit

WordPress plugin WPAppsDev - CF7 Form Submission Limit scored84%from 54 tests.

About plugin

  • Plugin page: cf7-form-submissi...
  • Plugin version: 2.4.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 27, 2020
  • Latest release: Sep 16, 2023
  • Number of updates: 12
  • Update frequency: every 98.3 days
  • Top authors: saifulananda (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /6,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼0.51ms] Passed 4 tests

A check of server-side resources used by WPAppsDev - CF7 Form Submission Limit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3444.19 ▲8.24
Dashboard /wp-admin3.64 ▲0.2948.60 ▼14.17
Posts /wp-admin/edit.php3.69 ▲0.3345.76 ▼1.66
Add New Post /wp-admin/post-new.php6.16 ▲0.2794.82 ▲11.61
Media Library /wp-admin/upload.php3.50 ▲0.2737.06 ▲5.57

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
wpadcf7sl_version
widget_recent-posts
theysaidso_admin_options
wpadcf7sl_installed

Browser metrics Passed 4 tests

WPAppsDev - CF7 Form Submission Limit: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.27 ▼0.291.90 ▲0.2943.30 ▲6.23
Dashboard /wp-admin2,228 ▲635.56 ▼0.0182.00 ▼6.8141.17 ▼1.78
Posts /wp-admin/edit.php2,137 ▲372.12 ▲0.0837.28 ▲0.0632.62 ▼3.03
Add New Post /wp-admin/post-new.php1,562 ▲3623.37 ▲0.59610.07 ▼63.0652.53 ▼4.03
Media Library /wp-admin/upload.php1,439 ▲364.19 ▼0.0897.71 ▼0.2744.66 ▲2.57

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • wpadcf7sl_installed
    • theysaidso_admin_options
    • wpadcf7sl_version
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-form-submission-limit-wpappsdev/templates/cf7-activation-notice.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cf7-form-submission-limit-wpappsdev/templates/counter-tag/formsubmit.php:1
    • > PHP Notice
      Undefined variable: is_logged_in in wp-content/plugins/cf7-form-submission-limit-wpappsdev/templates/counter-tag/userformsubmit.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-form-submission-limit-wpappsdev/templates/counter-tag/userformsubmit.php:18

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: contact form 7, form, submission limit, cf7

cf7-form-submission-limit-wpappsdev/wpappsdev-submission-limit-cf7.php 85% from 13 tests

The main file in "WPAppsDev - CF7 Form Submission Limit" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("cf7-form-submission-limit-wpappsdev.php" instead of "wpappsdev-submission-limit-cf7.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,290 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP277471,4263,080
JavaScript3165107
JSON20088
CSS311315

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.80
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods168
▷ Static methods2716.07%
▷ Public methods13077.38%
▷ Protected methods63.57%
▷ Private methods3219.05%
Functions12
▷ Named functions975.00%
▷ Anonymous functions325.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin