88% disable-recaptcha-cf7

Code Review | Disable Recaptcha - CF7

WordPress plugin Disable Recaptcha - CF7 scored 88% from 54 tests.

About plugin

  • Plugin page: disable-recaptcha...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.1
  • WordPress version: 5.8.1
  • First release: Dec 13, 2019
  • Latest release: Sep 20, 2021
  • Number of updates: 11
  • Update frequency: every 59.2 days
  • Top authors: vaidfaiyaz (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 4,188 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼149.50ms] 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 /2.86 ▲0.1436.59 ▲14.42
Dashboard /wp-admin3.09 ▲0.0447.32 ▼1.40
Posts /wp-admin/edit.php3.14 ▲0.0449.15 ▼0.90
Add New Post /wp-admin/post-new.php5.46 ▲0.0399.37 ▼589.12
Media Library /wp-admin/upload.php3.03 ▲0.0334.18 ▼6.57
Disable Recatcha - CF7 /wp-admin/options-general.php?page=disable-recaptcha-cf73.0622.13

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

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 /3,716 ▲12015.88 ▲0.397.24 ▼1.2648.18 ▼3.04
Dashboard /wp-admin2,980 ▲466.13 ▲0.17143.23 ▼8.18131.18 ▲14.30
Posts /wp-admin/edit.php2,749 ▲102.69 ▲0.0067.51 ▼4.3090.98 ▼9.36
Add New Post /wp-admin/post-new.php1,693 ▲7818.36 ▼2.98369.26 ▲78.02113.39 ▲2.84
Media Library /wp-admin/upload.php1,820 ▲135.05 ▲0.03155.32 ▼5.98128.87 ▼5.14
Disable Recatcha - CF7 /wp-admin/options-general.php?page=disable-recaptcha-cf71,7822.3767.5688.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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+5221
    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+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 33 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+160
    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: contact from 7, cf7, disable recaptcha, recaptcha

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

The main file in "Disable Recaptcha - CF7" v. 1.1 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 plugin498 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP52027387
CSS30063
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.39
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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