94% mymail-recaptcha

Code Review | MyMail reCaptcha™ for Forms

WordPress plugin MyMail reCaptcha™ for Forms scored 94% from 54 tests.

About plugin

  • Plugin page: mymail-recaptcha
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.1
  • WordPress version: 5.8.1
  • First release: Feb 26, 2014
  • Latest release: Jan 12, 2021
  • Number of updates: 32
  • Update frequency: every 78.5 days
  • Top authors: revaxarts (93.75%)everpress (9.38%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 3,832 total downloads

Benchmarks

Plugin footprint Passed 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.05MB] [CPU: ▼143.46ms] Passed 4 tests

Server-side resources used by MyMail reCaptcha™ for Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0536.54 ▼0.28
Dashboard /wp-admin3.12 ▲0.0646.42 ▼0.45
Posts /wp-admin/edit.php3.17 ▲0.0646.15 ▼2.77
Add New Post /wp-admin/post-new.php5.47 ▲0.0490.47 ▼564.57
Media Library /wp-admin/upload.php3.06 ▲0.0629.41 ▼6.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for MyMail reCaptcha™ for Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.91 ▲0.6312.00 ▲1.4349.61 ▲0.69
Dashboard /wp-admin2,967 ▲335.94 ▼0.05149.52 ▼11.34114.93 ▼7.67
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0169.05 ▲0.3383.75 ▼8.53
Add New Post /wp-admin/post-new.php1,683 ▼018.78 ▲2.12406.50 ▼31.19110.29 ▼2.01
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.07162.51 ▲6.40113.92 ▼3.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mymail-recaptcha/mymail-recaptcha.php:21

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: mymail, form, recaptcha, secure, forms...

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

The principal PHP file in "MyMail reCaptcha™ for Forms" v. 0.7 is loaded by WordPress automatically on each request
53 characters long description:
Adds a reCaptcha™ to your MyMail subscription forms

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 plugin393 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2113105393

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin