84% fluid-notification-bar

Code Review | Fluid Notification Bar

WordPress plugin Fluid Notification Bar scored84%from 54 tests.

About plugin

  • Plugin page: fluid-notificatio...
  • Plugin version: 3.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: Sep 17, 2016
  • Number of updates: 38
  • Update frequency: every 31.4 days
  • Top authors: shrinitech (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /6,987 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Fluid Notification Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0728.75 ▼12.49
Dashboard /wp-admin3.34 ▼0.0151.23 ▼13.58
Posts /wp-admin/edit.php3.39 ▲0.0358.66 ▲5.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.32 ▼9.08
Media Library /wp-admin/upload.php3.26 ▲0.0335.93 ▼1.02
Fluid Notification Bar /wp-admin/options-general.php?page=fluid-notification-bar-settings3.2334.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fluid Notification Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.71 ▼0.537.16 ▲5.2844.41 ▼0.37
Dashboard /wp-admin2,220 ▲465.77 ▲0.2185.71 ▼15.6941.56 ▼4.36
Posts /wp-admin/edit.php2,130 ▲332.33 ▲0.3344.92 ▲8.3337.48 ▲0.74
Add New Post /wp-admin/post-new.php1,545 ▲1417.71 ▼5.63600.11 ▼63.3133.92 ▼34.47
Media Library /wp-admin/upload.php1,428 ▲254.45 ▲0.24102.63 ▼2.3744.42 ▼1.64
Fluid Notification Bar /wp-admin/options-general.php?page=fluid-notification-bar-settings1,5322.4450.2634.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • fluid_notification_bar_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fluid-notification-bar/fnbar_plugin_options.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fluid-notification-bar/fluid-notification-bar.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

fluid-notification-bar/fluid-notification-bar.php Passed 13 tests

The principal PHP file in "Fluid Notification Bar" v. 3.2.3 is loaded by WordPress automatically on each request
135 characters long description:
Wanna say something to your website visitor? This plugin adds the cool responsive notification bar on the top of your website homepage.

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
Success! There were no dangerous files found in this plugin4,068 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS4492233,087
PHP318058586
JavaScript57730298
SVG10097

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png1.47KB0.75KB▼ 49.30%
screenshot-1.png47.14KB18.77KB▼ 60.18%