89% blacklisted-ip-adresses

Code Review | Blacklisted IP Adresses

WordPress plugin Blacklisted IP Adresses scored89%from 54 tests.

About plugin

  • Plugin page: blacklisted-ip-ad...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2023
  • Latest release: Jul 8, 2023
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: boldizart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.34ms] Passed 4 tests

A check of server-side resources used by Blacklisted IP Adresses
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.77 ▼3.59
Dashboard /wp-admin3.36 ▲0.0546.95 ▼3.20
Posts /wp-admin/edit.php3.41 ▲0.0544.60 ▼7.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.53 ▼15.13
Media Library /wp-admin/upload.php3.28 ▲0.0535.44 ▼0.08
Blacklisted IP addresses /wp-admin/tools.php?page=blacklistedIpAddresses3.2433.15

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Blacklisted IP Adresses: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13814.74 ▲0.331.70 ▼0.1944.78 ▲1.07
Dashboard /wp-admin2,293 ▲1054.86 ▼0.01100.33 ▼18.0641.69 ▼1.73
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0436.18 ▼4.9833.24 ▼3.97
Add New Post /wp-admin/post-new.php1,550 ▲1723.32 ▲0.07645.78 ▼31.9258.54 ▲3.55
Media Library /wp-admin/upload.php1,395 ▲44.24 ▼0.0095.52 ▼4.8841.73 ▼2.89
Blacklisted IP addresses /wp-admin/tools.php?page=blacklistedIpAddresses7762.0624.0128.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: blacklist, block, ips

blacklisted-ip-adresses/plugin.php 85% from 13 tests

"Blacklisted IP Adresses" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("blacklisted-ip-adresses.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin222 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34291203
JSON10019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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