68% bubok-publisher

Code Review | Bubok Publisher

WordPress plugin Bubok Publisher scored 68% from 54 tests.

About plugin

  • Plugin page: bubok-publisher
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 17, 2013
  • Latest release: May 10, 2016
  • Number of updates: 13
  • Update frequency: every 86.6 days
  • Top authors: bubok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,361 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.91MB] [CPU: ▼30.69ms] Passed 4 tests

Server-side resources used by Bubok Publisher
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.76 ▼8.66
Dashboard /wp-admin3.03 ▼0.2722.06 ▼25.85
Posts /wp-admin/edit.php3.03 ▼0.3223.72 ▼21.75
Add New Post /wp-admin/post-new.php3.03 ▼2.8525.03 ▼62.70
Media Library /wp-admin/upload.php3.03 ▼0.2020.80 ▼12.44

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_bubok_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bubok Publisher
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.58 ▼0.811.77 ▼0.0540.82 ▼3.80
Dashboard /wp-admin2,215 ▲274.85 ▼0.9699.44 ▼26.0437.96 ▼6.28
Posts /wp-admin/edit.php2,101 ▲152.04 ▲0.0539.02 ▲2.5534.43 ▼0.96
Add New Post /wp-admin/post-new.php1,543 ▲1023.15 ▼0.04621.24 ▼33.5961.19 ▼4.87
Media Library /wp-admin/upload.php1,400 ▲94.21 ▲0.0099.77 ▼1.2042.16 ▼2.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_bubok_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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 0% 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bubok-publisher/bubok.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bubok-publisher/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bubok-publisher/widget.php:5

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

bubok-publisher/bubok.php 92% from 13 tests

The main PHP file in "Bubok Publisher" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bubok-publisher.php" instead of "bubok.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected502 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP513535502

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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