77% developress-sticky-footer-bar

Code Review | DeveloPress Sticky Footer Bar

WordPress plugin DeveloPress Sticky Footer Bar scored77%from 54 tests.

About plugin

  • Plugin page: developress-stick...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 27, 2021
  • Latest release: Sep 16, 2023
  • Number of updates: 75
  • Update frequency: every 8.8 days
  • Top authors: smanimania (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,924 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.75ms] Passed 4 tests

This is a short check of server-side resources used by DeveloPress Sticky Footer Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.52 ▲1.15
Dashboard /wp-admin3.32 ▼0.0348.41 ▼12.33
Posts /wp-admin/edit.php3.37 ▲0.0149.54 ▼10.16
Add New Post /wp-admin/post-new.php5.92 ▲0.03101.22 ▲2.71
Media Library /wp-admin/upload.php3.24 ▲0.0136.47 ▼1.66
StickyBar Settings /wp-admin/options-general.php?page=stickybar-settings3.2235.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

DeveloPress Sticky Footer Bar: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.72 ▲0.371.68 ▼1.0151.42 ▲6.78
Dashboard /wp-admin2,210 ▲305.53 ▼0.0884.26 ▼9.1738.47 ▼1.44
Posts /wp-admin/edit.php2,109 ▲62.01 ▲0.0335.07 ▼2.9335.42 ▲2.21
Add New Post /wp-admin/post-new.php1,537 ▲1123.11 ▼0.13609.53 ▼88.0062.71 ▲10.35
Media Library /wp-admin/upload.php1,415 ▲184.20 ▲0.0699.06 ▼18.2744.27 ▼3.81
StickyBar Settings /wp-admin/options-general.php?page=stickybar-settings1,4933.5176.5950.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developress-sticky-footer-bar/developress_sticky_footer_bar.php:38

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=stickybar-settings
    • > Deprecation (warning) in unknown
    https://cdn03.jotfor.ms/static/jotform.forms.js?3.3.43064 114 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/options-general.php?page=stickybar-settings
    • > Network (severe)
    https://developress.it/wp-content/uploads/2023/06/developress-analytics-tool.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in developress-sticky-footer-bar/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === developress-sticky-footer-bar === )
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt is a good inspiration

developress-sticky-footer-bar/developress_sticky_footer_bar.php 77% from 13 tests

The main PHP file in "DeveloPress Sticky Footer Bar" ver. 2.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("developress-sticky-footer-bar.php" instead of "developress_sticky_footer_bar.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin751 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP19439464
CSS6136112266
JavaScript26421

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected