90% env-bar

Code Review | Env Bar

WordPress plugin Env Bar scored90%from 54 tests.

About plugin

  • Plugin page: env-bar
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0.0
  • WordPress version: 6.3.1
  • First release: Aug 24, 2017
  • Latest release: Dec 11, 2018
  • Number of updates: 20
  • Update frequency: every 23.7 days
  • Top authors: mrdink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Env Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.74 ▼7.29
Dashboard /wp-admin3.32 ▼0.0351.82 ▼21.12
Posts /wp-admin/edit.php3.37 ▲0.0150.43 ▲3.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.03 ▼0.09
Media Library /wp-admin/upload.php3.24 ▲0.0138.17 ▲3.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Env Bar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3414.33 ▼0.262.03 ▼0.0243.26 ▼1.85
Dashboard /wp-admin2,205 ▲315.64 ▲0.0589.42 ▼11.4841.00 ▼0.94
Posts /wp-admin/edit.php2,119 ▲162.02 ▲0.0441.02 ▲2.2836.34 ▲3.86
Add New Post /wp-admin/post-new.php1,539 ▲1323.26 ▲0.35664.93 ▲19.9458.49 ▼22.88
Media Library /wp-admin/upload.php1,419 ▲194.20 ▲0.01104.83 ▼0.3548.57 ▲2.68

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: development, tools, environment, server

env-bar/env-bar.php Passed 13 tests

The entry point to "Env Bar" version 0.3.0 is a PHP file that has certain tags in its header comment area
73 characters long description:
Display a colored bar to help distinguish between different environments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin205 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24378205

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin