Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.93ms] Passed 4 tests
Server-side resources used by Stand with Ukraine Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.68 ▼2.96 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.75 ▼19.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.03 ▼4.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.37 ▼9.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.10 ▲2.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Stand with Ukraine Banner: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.20 ▼0.18 | 1.82 ▼0.03 | 44.05 ▲0.86 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.08 | 96.36 ▲0.41 | 43.15 ▼4.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.05 | 36.83 ▼4.36 | 35.54 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.63 ▼5.60 | 619.37 ▼65.82 | 53.50 ▼2.97 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.20 ▼0.07 | 102.29 ▲2.40 | 49.49 ▲5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: support, plugin, anner, ukraine
we-stand-with-ukraine-banner/stand-with-ukraine.php 77% from 13 tests
Analyzing the main PHP file in "Stand with Ukraine Banner" version 1.0.8
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- 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: Please rename the main PHP file in this plugin to the plugin slug ("we-stand-with-ukraine-banner.php" instead of "stand-with-ukraine.php")
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 plugin730 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 354 | 437 | 687 |
Markdown | 2 | 24 | 0 | 42 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 41 | |
▷ Static methods | 19 | 46.34% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected