83% cf7-recaptcha-mine

Code Review | CF7 ReCaptcha Mine

WordPress plugin CF7 ReCaptcha Mine scored 83% from 54 tests.

About plugin

  • Plugin page: cf7-recaptcha-mine
  • Plugin version: 2.0.1
  • PHP compatiblity: PHP-Version 5.6++
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8+-6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Feb 12, 2023
  • Number of updates: 18
  • Update frequency: every 5.7 days
  • Top authors: matthiasnordwig (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.90ms] Passed 4 tests

Server-side resources used by CF7 ReCaptcha Mine
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.14 ▼5.29
Dashboard /wp-admin3.33 ▲0.0350.42 ▲5.04
Posts /wp-admin/edit.php3.45 ▲0.0943.43 ▼15.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.43 ▼9.25
Media Library /wp-admin/upload.php3.26 ▲0.0332.93 ▼1.78
CF7 ReCaptcha Mine /wp-admin/options-general.php?page=rcm_options3.2234.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options
rcm_pwo_stamp_log
can_compress_scripts
rcm_pow_salt
widget_recent-posts
db_upgraded
widget_theysaidso_widget
rcm_pow_difficulty
widget_recent-comments
rcm_pow_time_window
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF7 ReCaptcha Mine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.23 ▼1.204.92 ▲2.7746.46 ▼0.27
Dashboard /wp-admin2,210 ▲225.90 ▲0.03117.62 ▼1.1948.00 ▲4.19
Posts /wp-admin/edit.php2,096 ▲282.01 ▲0.0152.73 ▲15.5344.55 ▲14.57
Add New Post /wp-admin/post-new.php1,545 ▲2618.43 ▼4.60676.41 ▼14.4153.61 ▼4.92
Media Library /wp-admin/upload.php1,395 ▲44.26 ▼0.0397.31 ▼18.8842.42 ▼4.61
CF7 ReCaptcha Mine /wp-admin/options-general.php?page=rcm_options9032.1930.9037.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-recaptcha-mine/uninstall.php
    • > /wp-content/plugins/cf7-recaptcha-mine/class-option.php
    • > /wp-content/plugins/cf7-recaptcha-mine/cf7-recaptcha-mine.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Settings page settings-page.jpg), #2 (Add a tag to the CF7 form Designer add-tag-to-form.jpg), #3 (Adjust flamingo optionally inbox setup-cf7-for-flamingo.jpg)
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

cf7-recaptcha-mine/cf7-recaptcha-mine.php 85% from 13 tests

The main file in "CF7 ReCaptcha Mine" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "PHP-Version 5.6+")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "4.8+")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin669 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4130171484
JavaScript13729185

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.33
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2266.67%
▷ Protected methods00.00%
▷ Private methods1133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin