79% ip-limit

Code Review | IP LIMIT

WordPress plugin IP LIMIT scored 79% from 54 tests.

About plugin

  • Plugin page: ip-limit
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2017
  • Latest release: Mar 1, 2017
  • Number of updates: 15
  • Update frequency: N/A
  • Top authors: pie001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 442 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.34MB] [CPU: ▼14.57ms] Passed 4 tests

A check of server-side resources used by IP LIMIT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.14 ▼34.15
Dashboard /wp-admin3.33 ▲0.0345.92 ▼0.44
Posts /wp-admin/edit.php3.39 ▲0.0345.68 ▼3.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.41 ▼19.73
Media Library /wp-admin/upload.php3.26 ▲0.0334.75 ▼0.40
IP公開制限 /wp-admin/options-general.php?page=ip-limit3.2030.29

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

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

Browser metrics Passed 4 tests

IP LIMIT: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,771 ▲3613.25 ▼1.131.76 ▼0.0752.23 ▲7.68
Dashboard /wp-admin2,210 ▲214.83 ▼0.06104.76 ▼43.5143.98 ▼12.00
Posts /wp-admin/edit.php2,106 ▲141.99 ▼0.0736.37 ▼4.4445.71 ▲9.60
Add New Post /wp-admin/post-new.php6,493 ▲4,97920.28 ▲2.74930.63 ▲337.3882.94 ▲30.68
Media Library /wp-admin/upload.php1,392 ▲104.21 ▲0.0497.58 ▼2.0247.17 ▲3.03
IP公開制限 /wp-admin/options-general.php?page=ip-limit8082.0622.2475.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ip-limit
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ip-limit
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ip-limit/ip-limit.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No plugin tags provided

ip-limit/ip-limit.php Passed 13 tests

The main PHP file in "IP LIMIT" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
IP制限プラグイン - View filtering by IP

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
Everything looks great! No dangerous files found in this plugin267 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161103267

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin