10% blogbuzztime-for-wp

Code Review | BlogBuzzTime for WP

WordPress plugin BlogBuzzTime for WP scored10%from 54 tests.

About plugin

  • Plugin page: blogbuzztime-for-wp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Oct 1, 2014
  • Number of updates: 32
  • Update frequency: every 8.8 days
  • Top authors: gpenverne (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,547 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogBuzzTime_widget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼50.40ms] Passed 4 tests

An overview of server-side resources used by BlogBuzzTime for WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.56 ▼33.93
Dashboard /wp-admin2.12 ▼1.196.23 ▼40.81
Posts /wp-admin/edit.php2.12 ▼1.246.00 ▼40.62
Add New Post /wp-admin/post-new.php2.12 ▼3.786.09 ▼86.22
Media Library /wp-admin/upload.php2.12 ▼1.127.61 ▼26.36
BlogBuzzTime /wp-admin/options-general.php?page=BlogBuzzTime2.126.21

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 10 new options
New WordPress options
blogBuzzTime-options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_blogbuzztime_widget
widget_blogbuzztime_widgetpicture
widget_recent-posts
widget_blogbuzztime_widgetcounter

Browser metrics Passed 4 tests

An overview of browser requirements for BlogBuzzTime for WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,325 ▲56414.38 ▼0.159.15 ▲7.4744.20 ▲3.87
Dashboard /wp-admin2,199 ▲185.56 ▼0.1880.74 ▼17.9937.76 ▼6.73
Posts /wp-admin/edit.php2,104 ▲71.97 ▼0.0532.32 ▼3.6434.52 ▲0.49
Add New Post /wp-admin/post-new.php1,529 ▲322.99 ▼0.08640.30 ▼41.9758.55 ▲0.18
Media Library /wp-admin/upload.php1,398 ▼24.21 ▲0.0394.16 ▼4.2741.77 ▼2.81
BlogBuzzTime /wp-admin/options-general.php?page=BlogBuzzTime1,1112.1028.2830.75

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogBuzzTime_widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_blogbuzztime_widgetpicture
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_blogbuzztime_widgetcounter
    • db_upgraded
    • theysaidso_admin_options
    • widget_blogbuzztime_widget
    • widget_recent-comments

Smoke tests 25% 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)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Deprecated in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogBuzzTime_widget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Deprecated in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widgetCounter.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogBuzzTime_widgetCounter has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Deprecated in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widgetPicture.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlogBuzzTime_widgetPicture has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Deprecated in wp-content/plugins/blogbuzztime-for-wp/class/CreditRoom_widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; CreditRoom_widget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in BlogBuzzTime_widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in BlogBuzzTime_widgetCounter is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in BlogBuzzTime_widgetPicture is deprecated since version 4.3.0! Use __construct() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Notice in wp-content/plugins/blogbuzztime-for-wp/views/admin_home.php+86
    Trying to get property 'creditRooms' of non-object
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Warning in wp-content/plugins/blogbuzztime-for-wp/views/admin_home.php+269
    Invalid argument supplied for foreach()

SRP 50% 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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widgetPicture.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BlogBuzzTime' not found in wp-content/plugins/blogbuzztime-for-wp/views/admin_home.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blogbuzztime-for-wp/class/CreditRoom_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widgetCounter.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blogbuzztime-for-wp/class/BlogBuzzTime_widget.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=BlogBuzzTime - Access to XMLHttpRequest at 'http://www.blogbuzztime.com/check' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Network (severe)
    http://www.blogbuzztime.com/check - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=BlogBuzzTime - Access to XMLHttpRequest at 'http://www.blogbuzztime.com/cr/siteInfo' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=BlogBuzzTime
    • > Network (severe)
    http://www.blogbuzztime.com/cr/siteInfo - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

blogbuzztime-for-wp/blogbuzztime.php 85% from 13 tests

Analyzing the main PHP file in "BlogBuzzTime for WP" version 1.1
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("blogbuzztime-for-wp.php" instead of "blogbuzztime.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,053 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP810385709
PO File298120245
CSS16099

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected