84% ibar

Code Review | iBar

WordPress plugin iBar scored84%from 54 tests.

About plugin

  • Plugin page: ibar
  • Plugin version: 19.05
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 11, 2012
  • Latest release: Apr 30, 2019
  • Number of updates: 35
  • Update frequency: every 71.8 days
  • Top authors: lineshjose (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by iBar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.00 ▼5.36
Dashboard /wp-admin3.31 ▲0.0148.01 ▲0.03
Posts /wp-admin/edit.php3.36 ▲0.0148.83 ▼1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.56 ▼16.32
Media Library /wp-admin/upload.php3.24 ▲0.0137.17 ▲4.80

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for iBar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲16113.14 ▼1.171.81 ▼0.2130.59 ▼14.84
Dashboard /wp-admin2,247 ▲595.86 ▲0.98112.20 ▼3.5651.79 ▲8.23
Posts /wp-admin/edit.php2,145 ▲562.00 ▼0.0541.50 ▲5.0044.21 ▲11.88
Add New Post /wp-admin/post-new.php1,516 ▼417.59 ▼5.61673.04 ▲11.4959.55 ▲1.08
Media Library /wp-admin/upload.php1,432 ▲504.22 ▼0.0096.60 ▼2.1945.99 ▲4.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibar/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

ibar/index.php 92% from 13 tests

The main file in "iBar" v. 19.05 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ibar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected298 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS104278
PHP141320

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin