10% functionality-for-blogpost-lite-theme

Code Review | Functionality for Blogpost Lite theme

WordPress plugin Functionality for Blogpost Lite theme scored 10% from 54 tests.

About plugin

  • Plugin page: functionality-for...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 5.9.2
  • First release: Apr 8, 2016
  • Latest release: Jun 5, 2017
  • Number of updates: 9
  • Update frequency: every 47.1 days
  • Top authors: Cohhe (77.78%)sprincis (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 4,449 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/followers-widget.php+192
    Function create_function() is deprecated

Server metrics [RAM: ▼2.19MB] [CPU: ▼352.88ms] Passed 4 tests

This is a short check of server-side resources used by Functionality for Blogpost Lite theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.345.73 ▼52.25
Dashboard /wp-admin2.19 ▼1.215.10 ▼33.18
Posts /wp-admin/edit.php2.20 ▼1.445.88 ▼39.61
Add New Post /wp-admin/post-new.php2.19 ▼4.775.26 ▼1,286.48
Media Library /wp-admin/upload.php2.19 ▼1.104.90 ▼21.33
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php2.204.96
Manage Sidebars /wp-admin/themes.php?page=multiple_sidebars2.345.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-posts-plus
widget_vh_twitter
widget_vh_advertisement
widget_blogpost-directory-sidebar-comments
widget_vh_aboutus
widget_blogpost-directory-followers
widget_recent-comments
widget_recent-posts
widget_social_networks
widget_gmap
...

Browser metrics Passed 4 tests

An overview of browser requirements for Functionality for Blogpost Lite theme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,957 ▲21516.28 ▲0.639.60 ▲3.052.68 ▲0.59
Dashboard /wp-admin2,908 ▲476.13 ▼0.08119.11 ▼22.57154.89 ▼4.93
Posts /wp-admin/edit.php2,716 ▲253.24 ▲0.0171.08 ▲4.28144.24 ▲0.11
Add New Post /wp-admin/post-new.php2,034 ▲39922.58 ▲2.30451.51 ▲61.12180.96 ▲37.56
Media Library /wp-admin/upload.php1,723 ▲255.56 ▼0.02122.12 ▼16.37183.57 ▼6.61
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php11,32518.79541.20185.46
Manage Sidebars /wp-admin/themes.php?page=multiple_sidebars1,0512.6252.04103.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/followers-widget.php+192
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 13 options
    • widget_blogpost-directory-sidebar-comments
    • widget_vh_twitter
    • widget_vh_contactform
    • widget_vh_advertisement
    • widget_gmap
    • widget_recent-comments
    • widget_fastflickrwidget
    • widget_blogpost-directory-recent-comments
    • widget_vh_aboutus
    • widget_blogpost-directory-followers
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 40 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/about-us.php+141
    Function create_function() is deprecated
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/contactform.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_contactform has a deprecated constructor
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/googlemap.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_googlemap has a deprecated constructor
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; SocialMediaWidget has a deprecated constructor
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/advertisement.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_advertisement has a deprecated constructor
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/about-us.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_aboutus has a deprecated constructor
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/twitter/twitter.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_twitter has a deprecated constructor
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=multiple_sidebars
    • > Deprecated in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/sidebars/multiple_sidebars.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; sidebar_generator has a deprecated constructor
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+115
    Undefined index: title
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+116
    Undefined index: username
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+117
    Undefined index: view
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+118
    Undefined index: before_item
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+119
    Undefined index: after_item
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+120
    Undefined index: before_widget
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+121
    Undefined index: after_widget
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+122
    Undefined index: items
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+123
    Undefined index: more_title
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+124
    Undefined index: tags
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+125
    Undefined index: target
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+126
    Undefined index: show_titles
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+127
    Undefined index: thickbox
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+128
    Undefined index: random
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+129
    Undefined index: random_tag
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php+130
    Undefined index: javascript
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+92
    Undefined index: rss
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+93
    Undefined index: twitter
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+94
    Undefined index: facebook
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+95
    Undefined index: flickr
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+96
    Undefined index: youtube
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+97
    Undefined index: linkedin
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+98
    Undefined index: foursquare
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+99
    Undefined index: delicious
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+100
    Undefined index: digg
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+101
    Undefined index: display
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+102
    Undefined index: skype
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+103
    Undefined index: tumblr
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+104
    Undefined index: vimeo
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+105
    Undefined index: instagram
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+106
    Undefined index: pintrest
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php+107
    Undefined index: google
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/functionality-for-blogpost-lite-theme/admin/partials/blogpostlite-functionality-admin-display.php
    • > /wp-content/plugins/functionality-for-blogpost-lite-theme/public/partials/blogpostlite-functionality-public-display.php
    • > /wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/recent-posts-plus.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/fast-flickr-widget.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/widget-social.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/googlemap.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/recent-comments.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/contactform.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/sidebar-comments.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/sidebars/multiple_sidebars.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/followers-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/social_links.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-blogpost-lite-theme/includes/widgets/advertisement.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: blogpost-lite

functionality-for-blogpost-lite-theme/functionality-for-blogpostlite-theme.php 85% from 13 tests

The entry point to "Functionality for Blogpost Lite theme" version 1.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("functionality-for-blogpost-lite-theme.php" instead of "functionality-for-blogpostlite-theme.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,439 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP311,0922,0314,615
JavaScript462170429
PO File1162356347
CSS3202948

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity22.77
▷ Minimum class complexity1.00
▷ Maximum class complexity189.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods211
▷ Static methods2411.37%
▷ Public methods18286.26%
▷ Protected methods00.00%
▷ Private methods2913.74%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
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
includes/Tax-meta-class/images/add.png1.84KB1.49KB▼ 19.11%
includes/Tax-meta-class/images/edit.png1.54KB1.38KB▼ 10.34%
includes/Tax-meta-class/images/delete-16.png1.74KB0.90KB▼ 48.23%
includes/Tax-meta-class/images/remove.png2.15KB1.67KB▼ 22.25%