88% hueman-scrollable-sharrre-bar

Code Review | Hueman Scrollable Sharrre Bar

WordPress plugin Hueman Scrollable Sharrre Bar scored 88% from 54 tests.

About plugin

  • Plugin page: hueman-scrollable...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 5.9.2
  • First release: Jan 23, 2014
  • Latest release: May 8, 2014
  • Number of updates: 4
  • Update frequency: every 26.2 days
  • Top authors: erikfrye (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active / 3,031 total downloads

Benchmarks

Plugin footprint Passed 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.41MB] [CPU: ▼305.22ms] Passed 4 tests

Analyzing server-side resources used by Hueman Scrollable Sharrre Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼1.644.25 ▼46.50
Dashboard /wp-admin3.45 ▲0.0435.88 ▲2.53
Posts /wp-admin/edit.php3.67 ▲0.0340.26 ▲2.44
Add New Post /wp-admin/post-new.php6.91 ▼0.0696.93 ▼1,177.86
Media Library /wp-admin/upload.php3.32 ▲0.0326.15 ▲1.03
Hueman Scrollable Sharrre Bar /wp-admin/options-general.php?page=hueman-scrollable-sharrre-bar3.2724.25

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Hueman Scrollable Sharrre Bar: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,878 ▲12416.73 ▲1.1210.88 ▲4.832.17 ▼0.16
Dashboard /wp-admin2,893 ▲326.19 ▲0.00115.45 ▼13.59156.66 ▼0.35
Posts /wp-admin/edit.php2,696 ▲53.24 ▼0.0064.87 ▲0.32139.07 ▼3.64
Add New Post /wp-admin/post-new.php1,714 ▼521.42 ▼1.07445.36 ▲20.70155.07 ▼1.70
Media Library /wp-admin/upload.php1,703 ▲55.49 ▲0.03143.89 ▼3.01180.32 ▼1.71
Hueman Scrollable Sharrre Bar /wp-admin/options-general.php?page=hueman-scrollable-sharrre-bar1,0112.4352.80123.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=hueman-scrollable-sharrre-bar
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=hueman-scrollable-sharrre-bar
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hueman-scrollable-sharrre-bar/hueman-scrollable-sharrre-bar.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (What it looks like), #2 (Admin panel)
You can look at the official readme.txt

hueman-scrollable-sharrre-bar/hueman-scrollable-sharrre-bar.php Passed 13 tests

The entry point to "Hueman Scrollable Sharrre Bar" version 1.0 is a PHP file that has certain tags in its header comment area
78 characters long description:
Adds scrolling functionality to the Sharrre bar built into the Hueman template

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin173 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23258173

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.70KB14.75KB▼ 40.28%
screenshot-2.png9.85KB5.49KB▼ 44.31%