84% recaptcha-lite

Code Review | reCAPTCHA Lite

WordPress plugin reCAPTCHA Lite scored84%from 54 tests.

About plugin

  • Plugin page: recaptcha-lite
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: maliknaik16 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,693 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.11MB] [CPU: ▼1.92ms] Passed 4 tests

Server-side resources used by reCAPTCHA Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1448.98 ▲6.22
Dashboard /wp-admin3.46 ▲0.0849.55 ▼16.67
Posts /wp-admin/edit.php3.58 ▲0.1852.35 ▲3.02
Add New Post /wp-admin/post-new.php6.04 ▲0.12101.59 ▼0.23
Media Library /wp-admin/upload.php3.39 ▲0.1244.40 ▲7.92
reCAPTCHA Lite /wp-admin/options-general.php?page=grl-options3.3539.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for reCAPTCHA Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.02 ▼0.388.16 ▲6.5844.78 ▲1.40
Dashboard /wp-admin2,202 ▲225.65 ▼0.0084.43 ▼3.8236.89 ▼8.49
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0239.31 ▲2.7934.19 ▼3.45
Add New Post /wp-admin/post-new.php1,541 ▲1223.08 ▲0.14700.37 ▲41.2267.37 ▲17.50
Media Library /wp-admin/upload.php1,401 ▼24.23 ▲0.03104.71 ▲2.3547.80 ▲2.35
reCAPTCHA Lite /wp-admin/options-general.php?page=grl-options8762.0025.6532.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/recaptcha-lite/uninstall.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

recaptcha-lite/recaptcha-lite.php 92% from 13 tests

This is the main PHP file of "reCAPTCHA Lite" version 1.0, 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:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin550 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8156327515
JavaScript16726
CSS1159

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods3494.44%
▷ Protected methods12.78%
▷ Private methods12.78%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin