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
Install script ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼10.83ms] Passed 4 tests
Analyzing server-side resources used by Risk Warning Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.86 ▼4.61 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.70 ▲2.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.79 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.17 ▼0.72 | 64.40 ▼36.79 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.65 ▲3.13 |
Risk Warning Bar /wp-admin/options-general.php?page=risk_warning_bar_settings | 3.25 | 33.66 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
risk_warning_bar_version |
widget_theysaidso_widget |
warning_bar_page_views |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Risk Warning Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲39 | 13.15 ▼1.06 | 1.97 ▼0.16 | 43.12 ▲2.82 |
Dashboard /wp-admin | 2,233 ▲32 | 4.87 ▼1.01 | 110.90 ▲2.51 | 41.34 ▼3.76 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.06 ▲0.06 | 35.91 ▼4.54 | 36.21 ▲0.18 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,695 | 26.06 ▲2.86 | 913.28 ▲229.44 | 58.86 ▼3.84 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.27 ▼0.05 | 97.73 ▼2.14 | 42.31 ▼3.01 |
Risk Warning Bar /wp-admin/options-general.php?page=risk_warning_bar_settings | 3,816 | 4.81 | 191.24 | 95.51 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- warning_bar_page_views
- can_compress_scripts
- risk_warning_bar_version
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=risk_warning_bar_settings
- > Notice in wp-content/plugins/risk-warning-bar/includes/lib/class-risk-warning-bar-admin-api.php+206
Undefined index: description
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: compliance, warning, risk, forex, finance...
risk-warning-bar/risk-warning-bar.php 92% from 13 tests
This is the main PHP file of "Risk Warning Bar" version 1.0, 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:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,052 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 238 | 412 | 1,013 |
CSS | 3 | 2 | 0 | 28 |
JavaScript | 7 | 4 | 0 | 11 |
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 code | 0.41 |
Average class complexity | 25.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.52% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/switch.png | 3.37KB | 1.58KB | ▼ 53.11% |