10% wp-bugbot

Code Review | WP BugBot

WordPress plugin WP BugBot scored 10% from 54 tests.

About plugin

  • Plugin page: wp-bugbot
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Mar 1, 2017
  • Latest release: Jul 24, 2019
  • Number of updates: 12
  • Update frequency: every 72.8 days
  • Top authors: majick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 650 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-bugbot/wp-bugbot.php+1063
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.50MB] [CPU: ▼290.63ms] 75% from 4 tests

A check of server-side resources used by WP BugBot
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,800.41ms on /wp-admin/admin.php?page=wp-bugbot)
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5353.52 ▼1.75
Dashboard /wp-admin5.01 ▲1.605,015.07 ▲4,979.03
Posts /wp-admin/edit.php4.14 ▲0.5041.52 ▲3.54
Add New Post /wp-admin/post-new.php7.38 ▲0.4194.41 ▼1,166.74
Media Library /wp-admin/upload.php3.86 ▲0.5725.36 ▲2.44
WordQuest /wp-admin/admin.php?page=wordquest3.6624.63
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius4.0626.06
WP BugBot /wp-admin/admin.php?page=wp-bugbot4.201,800.41

Server storage [IO: ▲3.89MB] [DB: ▲0.13MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 187 new files
Database: no new tables, 8 new options
New WordPress options
wq_sidebar_options
fs_active_plugins
fs_api_cache
bb_sidebar_options
fs_accounts
fs_gdpr
wp_bugbot
fs_debug_mode

Browser metrics Passed 4 tests

WP BugBot: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,984 ▲23014.16 ▼1.626.69 ▲0.242.05 ▼0.78
Dashboard /wp-admin3,196 ▲3386.46 ▲0.16121.23 ▼17.50218.41 ▲50.87
Posts /wp-admin/edit.php2,789 ▲983.13 ▼0.1164.11 ▼2.15144.65 ▼6.34
Add New Post /wp-admin/post-new.php1,729 ▲6818.50 ▲2.97421.88 ▲24.32183.86 ▲22.37
Media Library /wp-admin/upload.php1,774 ▲825.66 ▲0.17124.96 ▼16.31201.50 ▲10.66
WordQuest /wp-admin/admin.php?page=wordquest2,0573.0659.90288.64
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius1,5222.4157.07131.20
WP BugBot /wp-admin/admin.php?page=wp-bugbot1,3242.5156.98167.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • fs_api_cache
    • wp_bugbot
    • wq_sidebar_options
    • fs_accounts
    • fs_gdpr
    • fs_debug_mode
    • bb_sidebar_options
    • fs_active_plugins

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wordquest
    • > Notice in wp-content/plugins/wp-bugbot/wordquest.php+1569
    Undefined index: donate

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-bugbot/freemius/templates/ajax-loader.php
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wp-bugbot/freemius/templates/partials/network-activation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bugbot/loader.php:1066
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_action() in wp-content/plugins/wp-bugbot/wordquest.php:84
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-bugbot/freemius/templates/account/partials/addon.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=wordquest
    • > Network (severe)
    https://pluginreview.net/recommends/?s=yes&a=majick&c=wordquest&t=sidebar - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 96% 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
8 plugin tags: editor, plugin editor, theme editor, core search, plugin search...

wp-bugbot/loader.php 92% from 13 tests

Analyzing the main PHP file in "WP BugBot" version 1.0.7
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-bugbot.php" instead of "loader.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin48,037 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code
PHP1088,19717,86634,851
PO File105,7106,91312,558
JavaScript68682588
JSON10027
CSS100013

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity83.84
▷ Minimum class complexity1.00
▷ Maximum class complexity2,609.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes49
▷ Abstract classes24.08%
▷ Concrete classes4795.92%
▷ Final classes00.00%
Methods1,211
▷ Static methods17014.04%
▷ Public methods88072.67%
▷ Protected methods151.24%
▷ Private methods31626.09%
Functions200
▷ Named functions17386.50%
▷ Anonymous functions2713.50%
Constants132
▷ Global constants10982.58%
▷ Class constants2317.42%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tick.png1.22KB1.09KB▼ 10.48%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/prn-logo.png6.56KB2.93KB▼ 55.26%
images/wordquest-icon.png1.24KB1.23KB0.40%
images/icon.png0.83KB0.81KB▼ 2.46%