90% easy-wp-members-recaptcha

Code Review | Easy WP Members reCaptcha Add-on

WordPress plugin Easy WP Members reCaptcha Add-on scored90%from 54 tests.

About plugin

  • Plugin page: easy-wp-members-r...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2018
  • Latest release: Sep 1, 2019
  • Number of updates: 4
  • Update frequency: every 135.7 days
  • Top authors: UsersUltra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 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.01MB] [CPU: ▼5.08ms] Passed 4 tests

Analyzing server-side resources used by Easy WP Members reCaptcha Add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0144.74 ▲2.08
Dashboard /wp-admin3.36 ▲0.0247.95 ▼9.40
Posts /wp-admin/edit.php3.47 ▲0.0847.40 ▼6.72
Add New Post /wp-admin/post-new.php5.94 ▲0.0189.70 ▼5.47
Media Library /wp-admin/upload.php3.28 ▲0.0139.90 ▲1.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy WP Members reCaptcha Add-on
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3413.79 ▼0.7616.11 ▲14.2044.75 ▲1.53
Dashboard /wp-admin2,195 ▲185.62 ▲0.0183.88 ▼14.1839.59 ▼2.67
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0236.74 ▼1.0534.43 ▲1.12
Add New Post /wp-admin/post-new.php1,536 ▲523.30 ▲0.05664.76 ▼35.0654.40 ▲1.69
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.02106.90 ▲2.5948.06 ▲1.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: spam control, members registration, recaptcha

easy-wp-members-recaptcha/index.php 92% from 13 tests

This is the main PHP file of "Easy WP Members reCaptcha Add-on" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-wp-members-recaptcha.php" instead of "index.php")

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 plugin5,672 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript312729555,604
PHP2341268

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin