84% crawler-hunter

Code Review | crawler-hunter

WordPress plugin crawler-hunter scored84%from 54 tests.

About plugin

  • Plugin page: crawler-hunter
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Oct 6, 2023
  • Number of updates: 134
  • Update frequency: every 2.6 days
  • Top authors: naimgr83 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /256 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.42ms] Passed 4 tests

This is a short check of server-side resources used by crawler-hunter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1244.47 ▼3.64
Dashboard /wp-admin3.42 ▲0.1249.37 ▼1.97
Posts /wp-admin/edit.php3.54 ▲0.1750.68 ▲8.88
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.22 ▼5.15
Media Library /wp-admin/upload.php3.34 ▲0.1142.76 ▲5.08
crawler-hunter /wp-admin/admin.php?page=crawler-hunter-admin-menu3.3234.31

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 2 new tables, 7 new options
New tables
wp_crawler_hunter
wp_crawler_hunter_ip
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
crwopt
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for crawler-hunter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲12814.06 ▼0.3710.13 ▲7.5042.25 ▼4.49
Dashboard /wp-admin2,233 ▲595.90 ▲0.2989.56 ▼1.3841.51 ▲4.21
Posts /wp-admin/edit.php2,137 ▲402.31 ▲0.2940.53 ▲2.7335.45 ▼0.88
Add New Post /wp-admin/post-new.php1,556 ▲3023.43 ▲0.30700.82 ▼12.8456.31 ▼4.87
Media Library /wp-admin/upload.php1,435 ▲354.40 ▲0.18114.55 ▲3.9847.59 ▲1.43
crawler-hunter-ip /wp-admin/crw_ip.php260.420.0615.10
crawler-hunter /wp-admin/admin.php?page=crawler-hunter-admin-menu1,2542.3743.0237.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/crw_ip.php
    • > Network (severe)
    wp-admin/crw_ip.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=crawler-hunter-admin-menu
    • > Network (severe)
    wp-content/plugins/crawler-hunter/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=crawler-hunter-admin-menu
    • > Network (severe)
    wp-content/plugins/crawler-hunter/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ban, spiders, bad bots, security, block

crawler-hunter/crw_hunter.php 92% from 13 tests

The entry point to "crawler-hunter" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("crawler-hunter.php" instead of "crw_hunter.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
Success! There were no dangerous files found in this plugin918 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP560188698
JavaScript3012204
Markdown13015
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.33
▷ Minimum class complexity7.00
▷ Maximum class complexity32.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin