74% bodi0s-bots-visits-counter

Code Review | bodi0`s Bots visits counter

WordPress plugin bodi0`s Bots visits counter scored 74% from 54 tests.

About plugin

  • Plugin page: bodi0s-bots-visit...
  • Plugin version: 0.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 20, 2014
  • Latest release: Jun 3, 2015
  • Number of updates: 43
  • Update frequency: every 11.7 days
  • Top authors: budiony (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 4,083 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.67ms] Passed 4 tests

This is a short check of server-side resources used by bodi0`s Bots visits counter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0050.84 ▼0.81
Dashboard /wp-admin3.31 ▲0.0055.93 ▼3.04
Posts /wp-admin/edit.php3.36 ▲0.0058.09 ▲4.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.48 ▼6.90
Media Library /wp-admin/upload.php3.23 ▲0.0038.57 ▼3.94

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

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

Browser metrics Passed 4 tests

A check of browser resources used by bodi0`s Bots visits counter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.66 ▼1.135.79 ▲3.9844.96 ▲1.69
Dashboard /wp-admin2,206 ▲65.90 ▲0.07102.22 ▲6.6538.75 ▼2.25
Posts /wp-admin/edit.php2,089 ▲182.05 ▲0.0340.53 ▲4.6935.16 ▲1.81
Add New Post /wp-admin/post-new.php1,533 ▼023.32 ▲0.13643.53 ▼39.0755.18 ▼2.33
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.0194.25 ▼13.7541.59 ▼3.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Incomplete uninstall procedure, leaving 16 files (0.15MB) in the plugin directory
    • (new file) languages/bodi0-bot-counter-bg_BG.mo
    • (new file) js/table-sorter.js
    • (new file) class.alexa-pagerank.php
    • (new file) class.excel.php
    • (new file) class.statscrop-pagerank.php
    • (new file) class.google-pagerank.php
    • (new file) class.geolocation.php
    • (new file) bodi0-bot-ajax.php
    • (new file) bodi0-bot-counter.php
    • (new file) bodi0-bot-admin.php
    • ...
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bodi0s-bots-visits-counter/bodi0-bot-ajax.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: statistics, spider, bot, counter, visits...

bodi0s-bots-visits-counter/bodi0-bot-counter.php 85% from 13 tests

Analyzing the main PHP file in "bodi0`s Bots visits counter" version 0.8.1
You should first fix the following items:
  • 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: It is recommended to name the main PHP file as the plugin slug ("bodi0s-bots-visits-counter.php" instead of "bodi0-bot-counter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,835 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP82564081,126
PO File3243262708
JavaScript1041

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2076.92%
▷ Protected methods415.38%
▷ Private methods27.69%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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