84% status-bar-color-changer-for-android

Code Review | Status Bar Color Changer For Android

WordPress plugin Status Bar Color Changer For Android scored 84% from 54 tests.

About plugin

  • Plugin page: status-bar-color-...
  • Plugin version: 0.1.5
  • PHP compatiblity: 5.4.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 16, 2018
  • Latest release: Feb 16, 2021
  • Number of updates: 24
  • Update frequency: every 45.2 days
  • Top authors: JOE007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.26ms] Passed 4 tests

This is a short check of server-side resources used by Status Bar Color Changer For Android
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.39 ▼5.44
Dashboard /wp-admin3.34 ▲0.0448.56 ▼19.30
Posts /wp-admin/edit.php3.39 ▲0.0351.53 ▲4.23
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.93 ▲0.36
Media Library /wp-admin/upload.php3.26 ▲0.0336.43 ▼4.65
Status Bar Color /wp-admin/options-general.php?page=chrome-color-themes3.2332.05

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Status Bar Color Changer For Android: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.33 ▼1.072.04 ▼0.1546.23 ▼1.00
Dashboard /wp-admin2,209 ▲214.92 ▼0.98107.66 ▼8.1042.47 ▲5.48
Posts /wp-admin/edit.php2,104 ▲152.09 ▲0.0438.32 ▲2.6430.19 ▼2.35
Add New Post /wp-admin/post-new.php6,473 ▲4,95920.02 ▲2.43892.54 ▲252.4253.03 ▼5.10
Media Library /wp-admin/upload.php1,397 ▲64.33 ▲0.1699.73 ▼10.2842.26 ▲0.39
Status Bar Color /wp-admin/options-general.php?page=chrome-color-themes7891.8730.8219.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/status-bar-color-changer-for-android/chromecolortheme.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

status-bar-color-changer-for-android/chromecolortheme.php 92% from 13 tests

The main file in "Status Bar Color Changer For Android" v. 0.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("status-bar-color-changer-for-android.php" instead of "chromecolortheme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin180 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP51347139
PO File1121240
JavaScript1091

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions9
▷ Named functions9100.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 images were found in this plugin