67% bubok-seller

Code Review | Bubok Seller in site

WordPress plugin Bubok Seller in site scored67%from 54 tests.

About plugin

  • Plugin page: bubok-seller
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Sep 28, 2023
  • Number of updates: 13
  • Update frequency: every 186.5 days
  • Top authors: bubok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /810 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼41.90ms] Passed 4 tests

An overview of server-side resources used by Bubok Seller in site
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.22 ▼2.03
Dashboard /wp-admin2.99 ▼0.3524.95 ▼49.26
Posts /wp-admin/edit.php2.99 ▼0.3628.42 ▼22.27
Add New Post /wp-admin/post-new.php2.99 ▼2.8925.49 ▼85.00
Media Library /wp-admin/upload.php2.99 ▼0.2426.90 ▼11.06

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: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Bubok Seller in site
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.17 ▼0.521.68 ▼0.6642.15 ▲0.38
Dashboard /wp-admin2,209 ▲295.68 ▲0.0691.22 ▼0.7076.86 ▲41.14
Posts /wp-admin/edit.php2,114 ▲141.99 ▼0.0237.24 ▲0.4633.99 ▼2.72
Add New Post /wp-admin/post-new.php1,690 ▲14522.55 ▼0.82698.52 ▼0.8743.59 ▼11.71
Media Library /wp-admin/upload.php1,408 ▲84.16 ▼0.06102.43 ▼12.8847.15 ▲2.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/bubok-seller/trunk/bubok.php
    • > /wp-content/plugins/bubok-seller/bubok.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bubok-seller/trunk/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bubok-seller/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

bubok-seller/bubok.php 85% from 13 tests

The main file in "Bubok Seller in site" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bubok-seller.php" instead of "bubok.php")
  • Description: The description should be shorter than 140 characters (currently 196 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
No dangerous file extensions were detected350 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47836350

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/icon.png0.81KB0.58KB▼ 27.72%
icon.png0.81KB0.58KB▼ 27.72%
trunk/trash.png2.48KB1.13KB▼ 54.51%
bubok-white.png2.77KB1.05KB▼ 62.18%
trunk/info.png2.12KB0.83KB▼ 60.63%