78% wp-sticky-footer-bar

Code Review | WP Sticky Footer Bar

WordPress plugin WP Sticky Footer Bar scored78%from 54 tests.

About plugin

  • Plugin page: wp-sticky-footer-bar
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2013
  • Latest release: Jun 29, 2013
  • Number of updates: 22
  • Update frequency: every 0.5 days
  • Top authors: ahmedraza481 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /8,618 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.07ms] Passed 4 tests

A check of server-side resources used by WP Sticky Footer Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.83 ▼2.08
Dashboard /wp-admin3.31 ▲0.0144.04 ▼3.57
Posts /wp-admin/edit.php3.36 ▲0.0144.85 ▼2.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.03 ▼7.65
Media Library /wp-admin/upload.php3.23 ▲0.0134.47 ▼0.12
Sticky Footer Bar /wp-admin/options-general.php?page=floating-sticky-bar3.2027.28

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
category_children
can_compress_scripts
floating_sticky_bar_cat

Browser metrics Passed 4 tests

An overview of browser requirements for WP Sticky Footer Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9713.26 ▼1.041.62 ▼0.5041.57 ▼5.48
Dashboard /wp-admin2,210 ▲225.86 ▼0.01104.50 ▼11.9944.04 ▼1.61
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0039.23 ▲5.3535.82 ▲1.03
Add New Post /wp-admin/post-new.php1,545 ▲718.15 ▼4.99587.25 ▼78.9152.00 ▲0.18
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0195.69 ▲0.0942.09 ▼0.25
Sticky Footer Bar /wp-admin/options-general.php?page=floating-sticky-bar9864.66103.5237.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • category_children
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-sticky-footer-bar/wp-sticky-footer-bar.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=floating-sticky-bar
    • > Security (severe) in unknown
    http://platform.twitter.com/widgets/follow_button.html?screen_name=arwebzone - Refused to execute script from 'https://cdn.syndication.twimg.com/widgets/followbutton/info.json?callback=__twttr.setFollowersCountAndFollowing&lang=en&screen_names=arwebzone' because its MIME type ('') is not executable, and strict MIME type checking is enabled.
    • > GET request to /wp-admin/options-general.php?page=floating-sticky-bar
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (=Demo := http://arwebzone.com), #2 (=Support Thread= http://arwebzone.com/wordpress-sticky-footer-bar-plugin/ .), #3 (=Follow My Blog= http://arwebzone.com .), #4 (=FB Fan Page= http://facebook.com/arwebzonecom .), #5 (=Subscribe= [Subscribe](http://feedburner.google.com/fb/a/mailverify?uri=ArWebZone "Subscribe My Blog.") .), #6 (=Twitter= http://twitter.com/arwebzone .)
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-sticky-footer-bar/wp-sticky-footer-bar.php Passed 13 tests

The main PHP script in "WP Sticky Footer Bar" version 1.2.4 is automatically included on every request by WordPress
124 characters long description:
Add a beautiful sticky floating bar at the footer of wordpress site.The bar will contain random post from selected category.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11524132
CSS16117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cancel.png0.89KB1.10KB0.00%
screenshot-2.PNG17.17KB7.17KB▼ 58.24%