90% admin-bar-in-fullscreen-mode

Code Review | Admin Bar in Fullscreen Mode

WordPress plugin Admin Bar in Fullscreen Mode scored90%from 54 tests.

About plugin

  • Plugin page: admin-bar-in-full...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Nov 11, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: srikat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,477 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Admin Bar in Fullscreen Mode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.63 ▲3.16
Dashboard /wp-admin3.31 ▲0.0149.31 ▲2.58
Posts /wp-admin/edit.php3.36 ▲0.0045.93 ▼0.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.11 ▲0.61
Media Library /wp-admin/upload.php3.24 ▲0.0035.08 ▲0.86

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Bar in Fullscreen Mode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.041.67 ▼0.0643.54 ▼0.53
Dashboard /wp-admin2,206 ▲184.85 ▼0.03111.88 ▲2.4041.25 ▼1.78
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.1735.31 ▼5.7632.97 ▼2.65
Add New Post /wp-admin/post-new.php1,658 ▲14422.76 ▲5.14566.95 ▼141.6668.89 ▲19.35
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0794.47 ▼2.8042.21 ▼2.54

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: fullscreen, admin bar, adminbar, gutenberg

admin-bar-in-fullscreen-mode/plugin.php 92% from 13 tests

The principal PHP file in "Admin Bar in Fullscreen Mode" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-bar-in-fullscreen-mode.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS15321
PHP172312

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin