83% bogo

Code Review | Bogo

WordPress plugin Bogo scored 83% from 54 tests.

About plugin

  • Plugin page: bogo
  • Plugin version: 3.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2009
  • Latest release: May 8, 2023
  • Number of updates: 541
  • Update frequency: every 9.5 days
  • Top authors: takayukister (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

10,000+ active / 190,717 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Bogo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6449.61 ▲7.25
Dashboard /wp-admin4.15 ▲0.8552.38 ▲1.72
Posts /wp-admin/edit.php4.23 ▲0.8755.03 ▲2.70
Add New Post /wp-admin/post-new.php6.68 ▲0.79109.71 ▲0.21
Media Library /wp-admin/upload.php4.01 ▲0.7844.52 ▲8.61

Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/bogo/" and "wp-content/uploads/"
    • (new file) wp-content/languages/bogo/.empty
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_bogo_language_switcher
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
bogo

Browser metrics Passed 4 tests

A check of browser resources used by Bogo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8713.71 ▼1.041.76 ▼0.1542.24 ▼4.97
Dashboard /wp-admin2,240 ▲494.85 ▼0.0996.83 ▼6.8140.19 ▼2.70
Posts /wp-admin/edit.php2,143 ▲542.11 ▲0.0936.09 ▼4.3634.30 ▼0.69
Add New Post /wp-admin/post-new.php1,683 ▲14118.50 ▲0.51601.04 ▼7.2733.45 ▼16.08
Media Library /wp-admin/upload.php1,419 ▲344.36 ▲0.1397.39 ▼3.3543.80 ▼0.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • bogo
    • widget_bogo_language_switcher
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

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
Please fix the following items
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bogo/includes/user.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogo/admin/includes/terms-translation.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bogo/includes/nav-menu.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogo/admin/includes/nav-menu.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bogo/admin/includes/user.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bogo/admin/includes/upgrade.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bogo/admin/includes/language-packs.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogo/admin/includes/language-packs.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-walker-nav-menu-edit.php' (include_path='.:/usr/share/php') in wp-content/plugins/bogo/admin/includes/nav-menu.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-walker-nav-menu-edit.php): failed to open stream: No such file or directory in wp-content/plugins/bogo/admin/includes/nav-menu.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #2, #3 in bogo/assets to your readme.txt
The official readme.txt is a good inspiration

bogo/bogo.php 92% from 13 tests

The main PHP script in "Bogo" version 3.7 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,455 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,1891654,432
CSS328714908
JavaScript321196
JSON10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity14.40
▷ Minimum class complexity3.00
▷ Maximum class complexity36.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods32
▷ Static methods825.00%
▷ Public methods2268.75%
▷ Protected methods412.50%
▷ Private methods618.75%
Functions132
▷ Named functions12796.21%
▷ Anonymous functions53.79%
Constants5
▷ Global constants5100.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