Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.48ms] Passed 4 tests
An overview of server-side resources used by Hana Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 49.18 ▲8.10 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.90 ▼3.13 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.24 ▼0.26 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.21 ▼8.14 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 43.56 ▲5.62 |
Add Content Block /wp-admin/post-new.php?post_type=hana_block | 3.50 | 52.70 |
Content Blocks /wp-admin/edit.php?post_type=hana_block | 3.42 | 42.44 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/hana-block/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Hana Block: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲88 | 13.23 ▼1.14 | 2.00 ▲0.26 | 40.02 ▼0.77 |
Dashboard /wp-admin | 2,250 ▲49 | 4.85 ▼0.07 | 112.41 ▼0.85 | 43.39 ▼1.01 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.00 ▼0.03 | 40.96 ▲6.35 | 36.03 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,570 ▲16 | 22.93 ▲4.85 | 642.62 ▼25.51 | 49.29 ▼3.72 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.23 ▲0.05 | 107.85 ▲4.60 | 44.90 ▼1.42 |
Add Content Block /wp-admin/post-new.php?post_type=hana_block | 2,321 | 7.73 | 183.83 | 68.14 |
Content Blocks /wp-admin/edit.php?post_type=hana_block | 1,116 | 1.95 | 31.96 | 28.07 |
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 detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: content block
hana-block/hana-block.php Passed 13 tests
The entry point to "Hana Block" version 1.0.2 is a PHP file that has certain tags in its header comment area
86 characters long description:
A simple and powerful plugin that allows to create content block and display anywhere.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,344 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 85 | 71 | 668 |
CSS | 1 | 64 | 6 | 663 |
JavaScript | 1 | 3 | 0 | 13 |
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.45 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected