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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▲46.01ms] Passed 4 tests
A check of server-side resources used by Bg Highlight Names
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.77 ▲2.31 | 228.80 ▲184.51 |
Dashboard /wp-admin | 3.47 ▲0.16 | 47.39 ▼5.39 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.72 ▼3.44 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 334.99 ▲241.09 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.16 ▲8.36 |
Highlight names /wp-admin/options-general.php?page=bg-highlight-names/bg-hlnames.php | 3.36 | 32.06 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 21 new options
New WordPress options |
---|
bg_hlnames_mode |
bg_hlnames_start_old |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
bg_hlnames_not_clean |
bg_hlnames_datebase |
bg_hlnames_debug |
bg_hlnames_in_progress |
bg_hlnames_classname |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Bg Highlight Names
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲59 | 13.22 ▼1.16 | 1.54 ▼0.42 | 37.71 ▼12.07 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.01 | 106.83 ▼11.18 | 41.04 ▼3.87 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.03 | 42.20 ▲1.67 | 35.92 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.59 ▼0.93 | 668.88 ▲19.97 | 57.77 ▼8.23 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.20 | 98.59 ▼6.39 | 44.61 ▲2.55 |
Highlight names /wp-admin/options-general.php?page=bg-highlight-names/bg-hlnames.php | 939 | 2.19 | 24.95 | 29.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 21 options in the database
- bg_hlnames_not_clean
- bg_hlnames_in_progress
- db_upgraded
- bg_hlnames_maxtime
- bg_hlnames_version
- widget_recent-comments
- bg_hlnames_target
- bg_hlnames_classname
- widget_theysaidso_widget
- bg_hlnames_start_old
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bg-highlight-names/bg-hlnames.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: The plugin tags were not defined
bg-highlight-names/bg-hlnames.php 92% from 13 tests
The main file in "Bg Highlight Names" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bg-highlight-names.php" instead of "bg-hlnames.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,361 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 5 | 9,387 |
PHP | 2 | 116 | 106 | 745 |
PO File | 1 | 107 | 145 | 229 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 50.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin