72% rm-wpcf7-recaptcha-defer

Code Review | WPCF 7 reCaptcha Defer

WordPress plugin WPCF 7 reCaptcha Defer scored72%from 54 tests.

About plugin

  • Plugin page: rm-wpcf7-recaptch...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Nov 24, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rueschmedia (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼17.39ms] Passed 4 tests

Analyzing server-side resources used by WPCF 7 reCaptcha Defer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.61 ▼14.12
Dashboard /wp-admin3.21 ▼0.0931.58 ▼20.10
Posts /wp-admin/edit.php3.28 ▼0.0732.77 ▼17.50
Add New Post /wp-admin/post-new.php5.43 ▼0.4669.73 ▼17.83
Media Library /wp-admin/upload.php3.21 ▼0.0130.27 ▼5.41
WPCF7 reCaptcha Defer /wp-admin/options-general.php?page=rm-wpcf7-recaptcha-defer3.1925.55

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WPCF 7 reCaptcha Defer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.33 ▼1.105.78 ▲3.7743.32 ▼0.73
Dashboard /wp-admin2,212 ▲214.82 ▼0.06106.22 ▼10.5840.15 ▼2.65
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0435.51 ▼6.7532.70 ▼5.75
Add New Post /wp-admin/post-new.php1,533 ▲1922.89 ▲5.39633.13 ▼67.1844.16 ▼8.24
Media Library /wp-admin/upload.php1,394 ▲64.22 ▼0.0196.19 ▼11.2243.20 ▼4.90
WPCF7 reCaptcha Defer /wp-admin/options-general.php?page=rm-wpcf7-recaptcha-defer8062.0625.2230.61

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rm-wpcf7-recaptcha-defer
    • > Notice in wp-content/plugins/rm-wpcf7-recaptcha-defer/admin/partials/rm-wpcf7-recaptcha-defer-admin-display.php+28
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rm-wpcf7-recaptcha-defer/public/partials/rm-wpcf7-recaptcha-defer-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rm-wpcf7-recaptcha-defer/admin/partials/rm-wpcf7-recaptcha-defer-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: optimization, recaptcha, seo, speed

rm-wpcf7-recaptcha-defer/rm-wpcf7-recaptcha-defer.php 92% from 13 tests

The primary PHP file in "WPCF 7 reCaptcha Defer" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)

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
Success! There were no dangerous files found in this plugin508 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12139558251
CSS26686156
JavaScript43286101

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected