89% dev-info-bar

Code Review | Dev Info Bar

WordPress plugin Dev Info Bar scored89%from 54 tests.

About plugin

  • Plugin page: dev-info-bar
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2017
  • Latest release: Jan 21, 2019
  • Number of updates: 10
  • Update frequency: every 41.7 days
  • Top authors: istvankrucsanyica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,539 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.08MB] [CPU: ▼7.38ms] Passed 4 tests

This is a short check of server-side resources used by Dev Info Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.17 ▼4.94
Dashboard /wp-admin3.39 ▲0.0547.65 ▼17.39
Posts /wp-admin/edit.php3.44 ▲0.0946.65 ▼4.02
Add New Post /wp-admin/post-new.php5.97 ▲0.0993.27 ▼3.16
Media Library /wp-admin/upload.php3.32 ▲0.0937.89 ▲3.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Dev Info Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,052 ▲29114.47 ▲0.181.75 ▲0.0639.23 ▲2.15
Dashboard /wp-admin2,331 ▲1545.65 ▲0.1190.38 ▲0.4243.50 ▲3.85
Posts /wp-admin/edit.php2,233 ▲1332.05 ▲0.0741.79 ▲3.1435.99 ▲2.97
Add New Post /wp-admin/post-new.php1,655 ▲12723.32 ▲0.20626.23 ▼64.4567.47 ▲11.06
Media Library /wp-admin/upload.php1,527 ▲1334.41 ▲0.18101.12 ▲3.5240.86 ▼3.57

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: environment, server, info, php, information...

dev-info-bar/bw-dev-info-bar.php 77% from 13 tests

This is the main PHP file of "Dev Info Bar" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dev-info-bar.php" instead of "bw-dev-info-bar.php")
  • Description: The description should be shorter than 140 characters (currently 162 characters long)

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
There were no executable files found in this plugin462 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6101123278
PO File25474142
CSS120042

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin