79% blossomthemes-toolkit

Code Review | BlossomThemes Toolkit

WordPress plugin BlossomThemes Toolkit scored 79% from 54 tests.

About plugin

  • Plugin page: blossomthemes-too...
  • Plugin version: 2.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2017
  • Latest release: May 2, 2023
  • Number of updates: 313
  • Update frequency: every 6.5 days
  • Top authors: blossomthemes (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50,000+ active / 780,492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.33MB] [CPU: ▲2.03ms] Passed 4 tests

Server-side resources used by BlossomThemes Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.80 ▲1.3447.94 ▲7.19
Dashboard /wp-admin4.60 ▲1.3057.56 ▲6.02
Posts /wp-admin/edit.php4.75 ▲1.3956.21 ▲4.99
Add New Post /wp-admin/post-new.php7.32 ▲1.4397.70 ▼10.08
Media Library /wp-admin/upload.php4.53 ▲1.3046.70 ▲11.79
Portfolios Categories /wp-admin/edit-tags.php?taxonomy=blossom_portfolio_categories&post_type=blossom-portfolio4.5545.58
Add New /wp-admin/post-new.php?post_type=blossom-portfolio7.3188.53
All Portfolios /wp-admin/edit.php?post_type=blossom-portfolio4.6149.86

Server storage [IO: ▲4.35MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 27 new options
New WordPress options
widget_blossomthemes_stat_counter_widget
widget_bttk_description_widget
db_upgraded
widget_blossom_client_logo_widget
widget_bttk_advertisement_widget
widget_bttk_author_bio
bttk_queue_flush_rewrite_rules
widget_bttk_contact_social_links
widget_bttk_facebook_page_widget
widget_bttk_social_links
...

Browser metrics Passed 4 tests

A check of browser resources used by BlossomThemes Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,062 ▲1,32717.36 ▲2.9839.55 ▲37.5945.06 ▼0.07
Dashboard /wp-admin3,291 ▲1,0995.02 ▲0.07107.90 ▼3.5538.88 ▼1.31
Posts /wp-admin/edit.php5,147 ▲3,0557.89 ▲5.88161.12 ▲120.0735.27 ▼1.78
Add New Post /wp-admin/post-new.php3,473 ▲1,92926.02 ▲7.82752.11 ▲125.4634.84 ▼18.80
Media Library /wp-admin/upload.php2,473 ▲1,0854.28 ▼0.1379.23 ▼30.2441.50 ▼3.21
Portfolios Categories /wp-admin/edit-tags.php?taxonomy=blossom_portfolio_categories&post_type=blossom-portfolio4,3207.38111.0426.81
Add New /wp-admin/post-new.php?post_type=blossom-portfolio3,47819.81997.0234.05
All Portfolios /wp-admin/edit.php?post_type=blossom-portfolio4,1217.66115.8833.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 27 options in the database
    • widget_bttk_custom_categories
    • widget_bttk_posts_category_slider_widget
    • widget_bttk_advertisement_widget
    • widget_recent-posts
    • widget_bttk_contact_social_links
    • widget_recent-comments
    • widget_blossom_client_logo_widget
    • db_upgraded
    • widget_blossomthemes_stat_counter_widget
    • widget_bttk_image_text_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blossomthemes-toolkit/public/partials/blossomthemes-toolkit-public-display.php
    • > /wp-content/plugins/blossomthemes-toolkit/admin/partials/blossomthemes-toolkit-admin-display.php
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-testimonial.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-stat-counter.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-facebook-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-author-bio.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-image-text.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-contact.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-posts-category-slider.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-pinterest.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-socialmedia.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blossomthemes-toolkit/includes/widgets/widget-client-logo.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: blossom, toolkit

blossomthemes-toolkit/blossomthemes-toolkit.php Passed 13 tests

This is the main PHP file of "BlossomThemes Toolkit" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
BlossomThemes Toolkit provides you necessary widgets for better and effective blogging.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin18,231 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript151,67046910,194
PHP367761,4656,400
CSS9260621,629
XML1008

PHP code Passed 2 tests

This is a very shot 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.40
Average class complexity31.07
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity6.28
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods160
▷ Static methods21.25%
▷ Public methods15596.88%
▷ Protected methods00.00%
▷ Private methods53.12%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/image/no-featured-img.png4.16KB1.39KB▼ 66.51%
admin/css/chosen-sprite.png0.51KB0.88KB0.00%
admin/images/ico-delete.png0.70KB0.72KB0.00%
public/css/image/no-featured-blank-img.png1.39KB0.10KB▼ 92.75%