83% improve-bot

Code Review | Improve Bot

WordPress plugin Improve Bot scored83%from 54 tests.

About plugin

  • Plugin page: improve-bot
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-7.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2020
  • Latest release: Oct 17, 2022
  • Number of updates: 27
  • Update frequency: every 34.1 days
  • Top authors: krinodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▲4.57ms] Passed 4 tests

This is a short check of server-side resources used by Improve Bot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.02340.87 ▲293.97
Dashboard /wp-admin3.59 ▲0.0352.39 ▼2.07
Posts /wp-admin/edit.php3.71 ▲0.0355.73 ▲1.38
Add New Post /wp-admin/post-new.php6.19 ▲0.05114.50 ▲14.61
Media Library /wp-admin/upload.php3.52 ▲0.0344.53 ▲4.35

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Improve Bot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10114.40 ▼0.354.14 ▲2.0041.14 ▼4.73
Dashboard /wp-admin2,213 ▲395.68 ▲0.1290.96 ▼7.7747.36 ▲0.46
Posts /wp-admin/edit.php2,121 ▲212.05 ▲0.0641.28 ▼4.4236.45 ▼1.70
Add New Post /wp-admin/post-new.php1,382 ▼16617.11 ▼6.03599.88 ▼29.8661.61 ▲18.98
Media Library /wp-admin/upload.php1,421 ▲214.20 ▼0.07110.68 ▼5.9345.05 ▼2.69

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/improve-bot/improvebot.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Ejemplo de iFrame en un sitio web.), #2 (Página de Administración.)
Please take inspiration from this readme.txt

improve-bot/improvebot.php 85% from 13 tests

Analyzing the main PHP file in "Improve Bot" version 0.0.1
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("improve-bot.php" instead of "improvebot.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
Success! There were no dangerous files found in this plugin154 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin