78% webdesignby-recaptcha

Code Review | Webdesignby Recaptcha

WordPress plugin Webdesignby Recaptcha scored78%from 54 tests.

About plugin

  • Plugin page: webdesignby-recap...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Jan 16, 2015
  • Latest release: Feb 8, 2017
  • Number of updates: 26
  • Update frequency: every 29.0 days
  • Top authors: websitedesignby (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,194 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.34ms] Passed 4 tests

An overview of server-side resources used by Webdesignby Recaptcha
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.47 ▼5.32
Dashboard /wp-admin3.35 ▲0.0453.07 ▲3.80
Posts /wp-admin/edit.php3.46 ▲0.1046.85 ▲2.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.05 ▼15.18
Media Library /wp-admin/upload.php3.27 ▲0.0433.59 ▲0.38
reCaptcha /wp-admin/options-general.php?page=webdesignby-recaptcha3.2129.62

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Webdesignby Recaptcha
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼1.311.63 ▼0.0642.88 ▲3.37
Dashboard /wp-admin2,213 ▲254.82 ▼0.2096.79 ▼5.0439.47 ▼0.48
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0233.79 ▲0.0933.55 ▼0.87
Add New Post /wp-admin/post-new.php1,517 ▼1117.42 ▼0.70631.19 ▲4.5162.78 ▲8.81
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0496.92 ▼8.0841.01 ▼2.46
reCaptcha /wp-admin/options-general.php?page=webdesignby-recaptcha8032.0624.0629.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=webdesignby-recaptcha
    • > Notice in wp-content/plugins/webdesignby-recaptcha/class/RecaptchaOptionsPage.php+42
    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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Webdesignby\\plugin_basename() in wp-content/plugins/webdesignby-recaptcha/webdesignby-recaptcha.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === webdesignby-recaptcha === )
You can take inspiration from this readme.txt

webdesignby-recaptcha/webdesignby-recaptcha.php Passed 13 tests

The principal PHP file in "Webdesignby Recaptcha" v. 1.7 is loaded by WordPress automatically on each request
46 characters long description:
Add reCAPTCHA to Wordpress default login page.

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 plugin223 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36217223

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.00
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin