89% wplogin-captcha

Code Review | wp-login captcha

WordPress plugin wp-login captcha scored 89% from 54 tests.

About plugin

  • Plugin page: wplogin-captcha
  • Plugin version: 1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: May 24, 2018
  • Latest release: Aug 3, 2018
  • Number of updates: 7
  • Update frequency: every 10.1 days
  • Top authors: robertreborobert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.79ms] Passed 4 tests

A check of server-side resources used by wp-login captcha
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0234.83 ▲2.39
Dashboard /wp-admin3.08 ▲0.0347.53 ▲6.21
Posts /wp-admin/edit.php3.13 ▲0.0343.17 ▼2.51
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.71 ▼568.87
Media Library /wp-admin/upload.php3.03 ▲0.0231.71 ▼10.17

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
fresh_install

Browser metrics Passed 4 tests

Checking browser requirements for wp-login captcha
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,746 ▲15016.00 ▲0.3711.49 ▲1.2750.38 ▲2.21
Dashboard /wp-admin3,033 ▲996.16 ▼0.02135.44 ▼18.59107.98 ▼1.77
Posts /wp-admin/edit.php2,785 ▲462.73 ▲0.0367.82 ▼12.8389.40 ▲0.64
Add New Post /wp-admin/post-new.php1,644 ▼3220.95 ▲2.05307.06 ▼104.53103.06 ▼5.27
Media Library /wp-admin/upload.php1,851 ▲445.04 ▲0.04169.24 ▲11.79110.11 ▼7.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • fresh_install

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

wplogin-captcha/wplogin_captcha.php 69% from 13 tests

"wp-login captcha" version 1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wplogin-captcha.php" instead of "wplogin_captcha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin201 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34130191
JavaScript1009
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.67
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin