Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.30MB] [CPU: ▼12.61ms] Passed 4 tests
This is a short check of server-side resources used by Yasothon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.81 ▲2.43 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.73 ▲0.16 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.86 ▲0.34 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.27 | 46.17 ▼50.66 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.34 ▼0.28 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Yasothon: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 14.48 ▲0.19 | 2.05 ▲0.10 | 42.89 ▼0.91 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.02 | 110.27 ▼1.57 | 39.24 ▲1.83 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.13 ▼2.47 | 35.06 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6,587 ▲5,051 | 22.73 ▼0.44 | 934.42 ▲266.27 | 70.10 ▲16.04 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▼0.03 | 94.22 ▼8.54 | 43.22 ▼1.03 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/post-style-4/index.php:223
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/posts-text-inner/index.php:213
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/posts/index.php:271
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/post-style-3/index.php:223
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/featured-posts/index.php:247
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/posts-list-sidebar/index.php:177
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/post-style-2/index.php:224
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yasothon-blocks/src/blocks/post-style-1/index.php:223
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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
5 plugin tags: editor, blog, news, magazine, block
yasothon-blocks/plugin.php 85% from 13 tests
"Yasothon" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 227 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yasothon-blocks.php" instead of "plugin.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
No dangerous file extensions were detected14,742 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,024 |
Sass | 11 | 1,023 | 5 | 3,927 |
JavaScript | 23 | 403 | 124 | 2,111 |
PHP | 10 | 426 | 232 | 1,610 |
SVG | 6 | 0 | 0 | 60 |
CSS | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin