78% disable-recaptcha-cf7

Code Review | Disable Recaptcha - CF7

WordPress plugin Disable Recaptcha - CF7 scored78%from 54 tests.

About plugin

  • Plugin page: disable-recaptcha...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: Nov 18, 2022
  • Number of updates: 15
  • Update frequency: every 71.7 days
  • Top authors: vaidfaiyaz (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /15,063 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Disable Recaptcha - CF7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.24 ▼1.63
Dashboard /wp-admin3.32 ▼0.0347.39 ▼13.25
Posts /wp-admin/edit.php3.37 ▲0.0142.51 ▼4.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.81 ▼7.72
Media Library /wp-admin/upload.php3.24 ▲0.0136.16 ▲2.41
Disable Recatcha - CF7 /wp-admin/options-general.php?page=disable-recaptcha-cf73.3732.36

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Disable Recaptcha - CF7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.15 ▼0.211.73 ▲0.2142.61 ▲1.69
Dashboard /wp-admin2,204 ▲245.56 ▼0.0186.83 ▼0.1937.26 ▼4.00
Posts /wp-admin/edit.php2,115 ▲182.02 ▲0.0333.64 ▼3.3532.01 ▼0.57
Add New Post /wp-admin/post-new.php1,537 ▲1123.20 ▼0.39659.19 ▲6.6858.28 ▼9.30
Media Library /wp-admin/upload.php1,412 ▲124.20 ▲0.0295.50 ▲1.5843.93 ▲2.48
Disable Recatcha - CF7 /wp-admin/options-general.php?page=disable-recaptcha-cf71,2821.7125.2751.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=disable-recaptcha-cf7
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=disable-recaptcha-cf7
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 34 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=disable-recaptcha-cf7
    • > Notice in wp-content/plugins/disable-recaptcha-cf7/templates/admin/disable-recaptcha.php+248
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/disable-recaptcha-cf7/templates/admin/disable-recaptcha.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/disable-recaptcha-cf7/disable-recaptcha-cf7.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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: disable recaptcha, recaptcha, cf7, contact from 7

disable-recaptcha-cf7/disable-recaptcha-cf7.php 92% from 13 tests

The main file in "Disable Recaptcha - CF7" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin625 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP52127474
CSS3210103
JavaScript33148

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin