83% lbstopattack

Code Review | Plugin LBstopattack

WordPress plugin Plugin LBstopattack scored83%from 54 tests.

About plugin

  • Plugin page: lbstopattack
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 12, 2022
  • Latest release: Aug 12, 2023
  • Number of updates: 23
  • Update frequency: every 26.2 days
  • Top authors: laubro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /825 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲1.18ms] Passed 4 tests

Server-side resources used by Plugin LBstopattack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0746.21 ▲1.24
Dashboard /wp-admin19.29 ▲15.903,162,391.85 ▲3,162,324.61
Posts /wp-admin/edit.php3.51 ▲0.1152.78 ▲0.53
Add New Post /wp-admin/post-new.php5.98 ▲0.0592.74 ▼7.80
Media Library /wp-admin/upload.php3.32 ▲0.0547.26 ▲10.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 21 new options
New tables
wp_lbsa_iptable
New WordPress options
lbsa_raiseerror
lbsa_db_version
widget_recent-comments
widget_theysaidso_widget
lbsa_errorcode
lbsa_ipblock
lbsa_ipblockcount
lbsa_sendto
lbsa_namespaces
lbsa_levelLFI
...

Browser metrics Passed 4 tests

Checking browser requirements for Plugin LBstopattack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.63 ▲0.271.98 ▲0.2443.71 ▲0.56
Dashboard /wp-admin2,211 ▲345.59 ▲0.0387.43 ▼3.5043.26 ▲2.20
Posts /wp-admin/edit.php2,119 ▲192.01 ▲0.0738.44 ▼0.0137.18 ▲0.44
Add New Post /wp-admin/post-new.php1,539 ▲1323.07 ▼0.00653.18 ▲25.9450.21 ▼16.51
Media Library /wp-admin/upload.php1,419 ▲194.20 ▼0.01101.88 ▲2.2543.25 ▼0.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • lbsa_unactive
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lbstopattack/inc/lbsa_home.php

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected

lbstopattack/lbstopattack.php 77% from 13 tests

Analyzing the main PHP file in "Plugin LBstopattack" version 1.1.5
You should first fix the following items:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin561 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP517226446
PO File13235115

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected