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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.01ms] Passed 4 tests
A check of server-side resources used by LSX Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 39.70 ▼3.76 |
Dashboard /wp-admin | 3.61 ▲0.31 | 51.04 ▼0.45 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 50.54 ▲5.57 |
Add New Post /wp-admin/post-new.php | 4.90 ▼0.98 | 47.92 ▼45.40 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 43.57 ▲6.24 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
LSX Blocks: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲119 | 13.81 ▼0.38 | 10.00 ▲8.13 | 39.29 ▼6.44 |
Dashboard /wp-admin | 2,200 ▲26 | 5.61 ▲0.01 | 86.24 ▼4.32 | 37.78 ▼2.93 |
Posts /wp-admin/edit.php | 2,099 ▲2 | 1.97 ▼0.06 | 33.92 ▼6.22 | 34.15 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,674 ▲146 | 25.12 ▲1.87 | 619.50 ▼83.48 | 37.18 ▼20.67 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.18 ▲0.00 | 97.01 ▼3.65 | 68.51 ▲20.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-blocks/src/blocks/block-team/index.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-blocks/src/blocks/block-testimonials/index.php:99
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-blocks/src/blocks/block-post-carousel/index.php:365
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-blocks/src/blocks/block-post-grid/index.php:353
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lsx-blocks/lsx-blocks.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wordpress blocks, block editor, lsx, blocks, page builder...
lsx-blocks/lsx-blocks.php 92% from 13 tests
The primary PHP file in "LSX Blocks" version 1.3.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin14,068 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 1,856 | 62 | 4,734 |
JavaScript | 29 | 461 | 448 | 4,334 |
Sass | 18 | 230 | 36 | 2,520 |
PHP | 17 | 404 | 738 | 1,852 |
JSON | 1 | 0 | 0 | 192 |
Markdown | 2 | 102 | 0 | 188 |
YAML | 4 | 5 | 0 | 185 |
XML | 1 | 13 | 9 | 44 |
PO File | 1 | 1 | 2 | 14 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 32 | |
▷ Named functions | 29 | 90.62% |
▷ Anonymous functions | 3 | 9.38% |
Constants | 4 | |
▷ Global constants | 4 | 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
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 |
dist/assets/images/mystery-man-square.png | 2.46KB | 1.66KB | ▼ 32.70% |