79% fixed-bar

Code Review | FixBar - Fixed Bar

WordPress plugin FixBar - Fixed Bar scored 79% from 54 tests.

About plugin

  • Plugin page: fixed-bar
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Jul 27, 2018
  • Number of updates: 22
  • Update frequency: every 0.9 days
  • Top authors: hevara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 830 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.17MB] [CPU: ▼11.86ms] Passed 4 tests

A check of server-side resources used by FixBar - Fixed Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.40 ▼7.05
Dashboard /wp-admin3.33 ▲0.0244.57 ▼3.62
Posts /wp-admin/edit.php3.38 ▲0.0250.75 ▲2.36
Add New Post /wp-admin/post-new.php5.15 ▼0.7465.72 ▼33.38
Media Library /wp-admin/upload.php3.25 ▲0.0234.32 ▼3.37

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for FixBar - Fixed Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲21613.91 ▼0.775.39 ▲3.7736.73 ▼10.82
Dashboard /wp-admin2,247 ▲595.14 ▲0.23103.11 ▼1.2239.89 ▼1.15
Posts /wp-admin/edit.php2,132 ▲432.54 ▲0.5043.30 ▲9.2735.93 ▲0.35
Add New Post /wp-admin/post-new.php1,974 ▲45521.87 ▼1.26679.55 ▲44.1178.45 ▲29.71
Media Library /wp-admin/upload.php1,429 ▲384.53 ▲0.32101.96 ▼1.3941.12 ▼3.94
FixBar Settings /wp-admin/fixbar.php260.440.0814.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/fixed-bar/inc/templates/fixed-bar-settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fixed-bar/fixed-bar.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fixed-bar/inc/templates/custom-meta-box.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fixed-bar/inc/function-settings-page.php:9

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 take a look at the following user-side issues
    • > GET request to /wp-admin/fixbar.php
    • > Network (severe)
    wp-admin/fixbar.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: fixed bar, popup, fixed button

fixed-bar/fixed-bar.php Passed 13 tests

The entry point to "FixBar - Fixed Bar" version 1.0.2 is a PHP file that has certain tags in its header comment area
47 characters long description:
Adds a fixed block and the button to your site.

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
No dangerous file extensions were detected7,805 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG4003,844
CSS71,244542,823
JavaScript4877811
PHP47968327

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions16
▷ Named functions16100.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
No PNG files were detected