94% jc-recaptcha

Code Review | JC Recaptcha

WordPress plugin JC Recaptcha scored 94% from 53 tests.

About plugin

  • Plugin page: jc-recaptcha
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0.1
  • WordPress version: 5.8.1
  • First release: Jan 11, 2015
  • Latest release: Mar 13, 2015
  • Number of updates: 27
  • Update frequency: every 2.3 days
  • Top authors: llavillaccama (100%)

Code review

53 tests

User reviews

3 reviews

Install metrics

200+ active / 5,286 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by JC Recaptcha
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0334.83 ▲6.53
Dashboard /wp-admin3.10 ▲0.0447.91 ▲5.89
Posts /wp-admin/edit.php3.15 ▲0.0445.67 ▲6.84
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.77 ▼1,047.22
Media Library /wp-admin/upload.php3.04 ▲0.0332.04 ▼5.89

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for JC Recaptcha
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲21417.25 ▲1.7613.06 ▲4.2148.62 ▼3.52
Dashboard /wp-admin2,948 ▲987.11 ▲1.28136.60 ▼6.02127.85 ▲25.64
Posts /wp-admin/edit.php2,733 ▲273.38 ▲0.6767.31 ▲4.1199.25 ▲8.40
Add New Post /wp-admin/post-new.php1,677 ▼36119.45 ▲0.13383.58 ▲2.75123.92 ▲12.00
Media Library /wp-admin/upload.php1,739 ▼365.71 ▲0.69134.17 ▼10.02144.26 ▲38.81

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 short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jc-recaptcha/jc_recaptcha.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 31 tag instead of maximum 10
The official readme.txt might help

jc-recaptcha/jc_recaptcha.php 92% from 13 tests

The main file in "JC Recaptcha" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jc-recaptcha.php" instead of "jc_recaptcha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected171 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3922149
JavaScript20016
CSS1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.40KB1.36KB▼ 43.15%
images/icon.png1.24KB0.44KB▼ 64.40%