10% debug-bar-localization

Code Review | Debug Bar Localization

WordPress plugin Debug Bar Localization scored 10% from 54 tests.

About plugin

  • Plugin page: debug-bar-localiz...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 5.8.1
  • First release: Jan 13, 2016
  • Latest release: Apr 30, 2016
  • Number of updates: 5
  • Update frequency: every 21.6 days
  • Top authors: jrf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,662 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/debug-bar-localization/debug-bar-localization.php+61
    Undefined variable: wp_version

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

This is a short check of server-side resources used by Debug Bar Localization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.21 ▲10.52
Dashboard /wp-admin3.06 ▲0.0050.26 ▲1.88
Posts /wp-admin/edit.php3.11 ▲0.0049.44 ▼0.98
Add New Post /wp-admin/post-new.php5.42 ▼0.0293.96 ▼606.02
Media Library /wp-admin/upload.php3.00 ▲0.0035.87 ▼2.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Debug Bar Localization
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▲0.249.25 ▼0.8151.25 ▲2.25
Dashboard /wp-admin2,967 ▲336.09 ▲0.13147.84 ▼2.08118.38 ▼3.57
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0072.24 ▼1.9999.13 ▲3.17
Add New Post /wp-admin/post-new.php1,498 ▼218.89 ▲0.16374.43 ▼33.76118.20 ▼8.29
Media Library /wp-admin/upload.php1,804 ▼35.00 ▼0.01164.59 ▲6.60123.48 ▼5.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: The official readme.txt is a good inspiration

debug-bar-localization/debug-bar-localization.php 92% from 13 tests

"Debug Bar Localization" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin816 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6185426571
PO File14043130
CSS2172115

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity18.75
▷ Minimum class complexity7.00
▷ Maximum class complexity46.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods2362.16%
▷ Protected methods1129.73%
▷ Private methods38.11%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/badge-circle-cross-16.png0.74KB0.83KB0.00%
images/search-16.png0.57KB0.67KB0.00%