84% codebulls-top-bar

Code Review | Top-Bar CodeBulls

WordPress plugin Top-Bar CodeBulls scored84%from 54 tests.

About plugin

  • Plugin page: codebulls-top-bar
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Jul 16, 2022
  • Number of updates: 16
  • Update frequency: every 60.9 days
  • Top authors: codebulls (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /11,777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Top-Bar CodeBulls
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0724.84 ▼16.25
Dashboard /wp-admin3.32 ▲0.0245.81 ▼2.25
Posts /wp-admin/edit.php3.37 ▲0.0243.86 ▼3.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.40 ▼3.66
Media Library /wp-admin/upload.php3.24 ▲0.0235.71 ▲0.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Top-Bar CodeBulls
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.71 ▼0.671.54 ▼0.3238.95 ▼4.81
Dashboard /wp-admin2,239 ▲514.91 ▼0.9792.43 ▼15.6876.70 ▲31.36
Posts /wp-admin/edit.php2,125 ▲362.02 ▲0.0045.06 ▲7.5333.93 ▼0.32
Add New Post /wp-admin/post-new.php1,698 ▲16422.25 ▼0.95671.64 ▲1.3460.87 ▲9.50
Media Library /wp-admin/upload.php1,418 ▲304.11 ▼0.15113.69 ▲4.1846.18 ▼0.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/general-content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/top-bar-content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/tab-manager.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/generate-top-bar.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in codebulls-top-bar/assets to your readme.txt
  • License uri: Invalid URI found ("[GPLv2](http://www.gnu.org/licences/gpl-2.0.html)")
The official readme.txt is a good inspiration

codebulls-top-bar/codebulls-top-bar.php Passed 13 tests

The main PHP script in "Top-Bar CodeBulls" version 1.5.0 is automatically included on every request by WordPress
46 characters long description:
A simple Top Bar that can be fully customized.

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
Success! There were no dangerous files found in this plugin662 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP63753527
CSS2161970
Markdown19038
JavaScript21027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected