84% bibot

Code Review | bibot

WordPress plugin bibot scored84%from 54 tests.

About plugin

  • Plugin page: bibot
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: Aug 3, 2019
  • Number of updates: 9
  • Update frequency: every 9.0 days
  • Top authors: aremorteza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /627 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.97ms] Passed 4 tests

An overview of server-side resources used by bibot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.83 ▲8.41
Dashboard /wp-admin3.35 ▲0.0546.69 ▼3.28
Posts /wp-admin/edit.php3.40 ▲0.0447.41 ▼2.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.41 ▼9.09
Media Library /wp-admin/upload.php3.27 ▲0.0435.56 ▲2.75
bibot /wp-admin/options-general.php?page=bib-options3.2430.97

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bibot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.58 ▼0.821.70 ▼0.2045.45 ▼1.49
Dashboard /wp-admin2,210 ▲184.85 ▼0.10117.42 ▲7.0442.52 ▼4.41
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0136.18 ▲0.0534.65 ▲3.97
Add New Post /wp-admin/post-new.php1,517 ▼317.75 ▼5.34599.54 ▼108.6364.02 ▲9.00
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0399.70 ▲0.0943.22 ▼2.85
bibot /wp-admin/options-general.php?page=bib-options7912.0323.7939.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bibot/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bibot === )
  • Donate link: Please fix this invalid URI: "bibot.ir"
You can take inspiration from this readme.txt

bibot/bibot.php Passed 13 tests

The entry point to "bibot" version 1.0.0 is a PHP file that has certain tags in its header comment area
76 characters long description:
Simply protect your WordPress against spam comments and brute-force attacks!

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
There were no executable files found in this plugin145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin