83% jeba-limit-login-attempts

Code Review | Jeba Limit Login Attempts

WordPress plugin Jeba Limit Login Attempts scored83%from 54 tests.

About plugin

  • Plugin page: jeba-limit-login-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Mar 31, 2015
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.22ms] Passed 4 tests

Analyzing server-side resources used by Jeba Limit Login Attempts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.94 ▼1.09
Dashboard /wp-admin3.32 ▼0.0348.84 ▼18.96
Posts /wp-admin/edit.php3.37 ▲0.0150.64 ▼2.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.82 ▼15.18
Media Library /wp-admin/upload.php3.24 ▲0.0137.46 ▼4.67

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jeba Limit Login Attempts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲8213.37 ▼0.987.96 ▲6.0743.37 ▼0.19
Dashboard /wp-admin2,195 ▲215.63 ▲0.0391.70 ▼5.4641.74 ▲0.38
Posts /wp-admin/edit.php2,100 ▼31.96 ▲0.0141.66 ▼0.6335.95 ▼2.53
Add New Post /wp-admin/post-new.php1,526 ▼023.02 ▼0.05631.61 ▼36.5548.85 ▼7.65
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0195.51 ▼3.8740.56 ▼2.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_action() in wp-content/plugins/jeba-limit-login-attempts/jeba-login.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Screenshot #1 (How to use shortcode in editor.) image missing
You can look at the official readme.txt

jeba-limit-login-attempts/jeba-login.php 85% from 13 tests

The main file in "Jeba Limit Login Attempts" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 267 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("jeba-limit-login-attempts.php" instead of "jeba-login.php")

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
No dangerous file extensions were detected61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP118961

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.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 methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin