78% footer-widget-bundle

Code Review | Footer widget bundle

WordPress plugin Footer widget bundle scored 78% from 54 tests.

About plugin

  • Plugin page: footer-widget-bundle
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2019
  • Latest release: Aug 22, 2019
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: kamrulbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,489 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲2.09ms] Passed 4 tests

A check of server-side resources used by Footer widget bundle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.24 ▲0.43
Dashboard /wp-admin3.43 ▲0.1254.34 ▲6.62
Posts /wp-admin/edit.php3.54 ▲0.1953.62 ▲6.94
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.82 ▲1.01
Media Library /wp-admin/upload.php3.33 ▲0.1037.79 ▲0.28

Server storage [IO: ▲0.92MB] [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: 19 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_fwb-opening-hour
widget_fwb-contact-address
widget_fwb-recent-post
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_fwb-company-profile
...

Browser metrics Passed 4 tests

Footer widget bundle: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲20814.85 ▲0.471.86 ▲0.2938.13 ▼2.28
Dashboard /wp-admin2,342 ▲1546.47 ▲1.59120.96 ▲10.6737.40 ▼5.73
Posts /wp-admin/edit.php2,251 ▲1593.38 ▲1.3455.30 ▲18.8433.80 ▼0.25
Add New Post /wp-admin/post-new.php1,530 ▼323.40 ▲0.36622.29 ▼47.1438.01 ▼18.46
Media Library /wp-admin/upload.php1,390 ▲24.14 ▼0.0580.22 ▼35.3340.22 ▼8.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 11 options in the database
    • widget_recent-posts
    • widget_fwb-opening-hour
    • widget_recent-comments
    • widget_fwb-contact-address
    • db_upgraded
    • widget_fwb-company-profile
    • can_compress_scripts
    • widget_fwb-recent-post
    • widget_fwb-latest-post
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/footer-widget-bundle/footer-widget.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-widget-bundle/inc/fwb-latest-post.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-widget-bundle/inc/fwb-recent-post.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-widget-bundle/inc/fwb-opening-hour.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-widget-bundle/inc/fwb-company-profile.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-widget-bundle/inc/fwb-contact-address.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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 your attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

footer-widget-bundle/footer-widget.php 85% from 13 tests

The main PHP script in "Footer widget bundle" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 249 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("footer-widget-bundle.php" instead of "footer-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,249 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP93769350
CSS2128192
JavaScript111022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.20
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin