10% geo-captcha-geo-blacklist

Code Review | Geo-Captcha & Geo-Blacklist

WordPress plugin Geo-Captcha & Geo-Blacklist scored 10% from 54 tests.

About plugin

  • Plugin page: geo-captcha-geo-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.2.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2012
  • Latest release: Apr 28, 2012
  • Number of updates: 5
  • Update frequency: every 5.0 days
  • Top authors: Tears_of_Hate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,647 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/geo-captcha-geo-blacklist/geo-captcha-blacklist-pages.php+7
    Undefined index: action

Server metrics [RAM: ▼1.81MB] [CPU: ▼52.78ms] Passed 4 tests

Analyzing server-side resources used by Geo-Captcha & Geo-Blacklist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.03 ▼36.90
Dashboard /wp-admin2.20 ▼1.117.04 ▼42.40
Posts /wp-admin/edit.php2.20 ▼1.167.89 ▼41.86
Add New Post /wp-admin/post-new.php2.20 ▼3.696.68 ▼89.96
Media Library /wp-admin/upload.php2.20 ▼1.038.56 ▼23.98

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 17 new options
New WordPress options
widget_recent-comments
geo_capblack_manuell_spam
geo_capblack_comments
db_upgraded
geo_capblack_whitelisted_spam
geo_capblack_log_ips
can_compress_scripts
widget_theysaidso_widget
geo_capblack_legal
geo_capblack_registered_comments
...

Browser metrics Passed 4 tests

A check of browser resources used by Geo-Captcha & Geo-Blacklist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10514.41 ▼0.021.65 ▼0.1744.29 ▼3.85
Dashboard /wp-admin2,249 ▲584.94 ▲0.04101.37 ▼1.9066.44 ▲19.63
Posts /wp-admin/edit.php2,132 ▲432.04 ▼0.0138.69 ▼1.9034.93 ▼1.12
Add New Post /wp-admin/post-new.php1,710 ▲17724.46 ▲0.85654.93 ▲66.3558.10 ▲8.89
Media Library /wp-admin/upload.php1,422 ▲314.16 ▼0.05100.50 ▲3.3746.50 ▲5.00
Stats /wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-stats260.440.1114.79
Log /wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-logs260.440.096.98
Settings /wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-settings260.440.126.83
Geo Captcha /wp-admin/geo-captcha-blacklist.php260.440.086.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/geo-captcha-geo-blacklist/geo-captcha-blacklist-pages.php+7
    Undefined index: action
  • Zombie WordPress options detected upon uninstall: 17 options
    • widget_recent-posts
    • geo_capblack_manuell_spam
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • geo_capblack_whitelisted_spam
    • geo_capblack_registered_comments
    • widget_recent-comments
    • geo_capblack_black
    • geo_capblack_comments
    • ...

Smoke tests 25% 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 0% 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 items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage_show.php
    • > /wp-content/plugins/geo-captcha-geo-blacklist/securimage/example_form.php
    • > /wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage_play.php
    • > /wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage_example.php
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/geo-captcha-geo-blacklist/geo-captcha-blacklist-pages.php:4
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652
    • > PHP Notice
      A non well formed numeric value encountered in wp-content/plugins/geo-captcha-geo-blacklist/securimage/securimage.php on line 652

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-stats
    • > Network (severe)
    wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-stats - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-logs
    • > Network (severe)
    wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-logs - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-settings
    • > Network (severe)
    wp-admin/geo-captcha-blacklist.php?page=geo-captcha-blacklist-settings - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/geo-captcha-blacklist.php
    • > Network (severe)
    wp-admin/geo-captcha-blacklist.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (logo.jpg), #2 (screenshot-1.gif), #3 (screenshot-2.gif), #4 (screenshot-3.gif)
Please take inspiration from this readme.txt

geo-captcha-geo-blacklist/geo-captcha-blacklist.php 92% from 13 tests

The main file in "Geo-Captcha & Geo-Blacklist" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("geo-captcha-geo-blacklist.php" instead of "geo-captcha-blacklist.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,962 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP143005681,811
PO File169111137
CSS13014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity47.50
▷ Minimum class complexity42.00
▷ Maximum class complexity53.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.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

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_white.png1.56KB1.00KB▼ 36.01%
images/icon_bad.png0.54KB0.54KB▼ 0.54%
images/icon_black.png1.55KB0.77KB▼ 50.57%
images/geo-captcha-blacklist-icon.png4.62KB1.64KB▼ 64.46%
images/geo-captcha-blacklist-icon16.png1.56KB0.75KB▼ 52.22%