Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.10MB] [CPU: ▼6.50ms] Passed 4 tests
Server-side resources used by Smart Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 44.71 ▲3.02 |
Dashboard /wp-admin | 4.42 ▲1.08 | 52.44 ▼14.50 |
Posts /wp-admin/edit.php | 4.48 ▲1.12 | 50.51 ▼1.18 |
Add New Post /wp-admin/post-new.php | 7.31 ▲1.42 | 95.01 ▼13.07 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 45.58 ▲2.77 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
smart_blocks_first_activation |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.53 ▼0.91 | 10.25 ▲8.46 | 44.61 ▲0.99 |
Dashboard /wp-admin | 2,200 ▲26 | 5.62 ▼0.03 | 83.54 ▼9.15 | 40.07 ▼2.81 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.01 ▲0.05 | 36.21 ▲0.29 | 31.96 ▼4.23 |
Add New Post /wp-admin/post-new.php | 6,380 ▲4,854 | 23.17 ▲0.09 | 961.40 ▲282.23 | 40.95 ▼8.94 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.18 ▼0.05 | 98.73 ▼15.23 | 44.37 ▼4.34 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- smart_blocks_first_activation
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× 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/smart-blocks/inc/generate-css.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in smart-blocks/assets to your readme.txt
smart-blocks/smart-blocks.php Passed 13 tests
This is the main PHP file of "Smart Blocks" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Collection of advanced blocks to be used with WordPress Gutenberg Pagebuilder
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
Everything looks great! No dangerous files found in this plugin37,051 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 7,827 | 69 | 24,982 |
PHP | 29 | 609 | 167 | 10,011 |
JavaScript | 3 | 493 | 958 | 2,058 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 146 | |
▷ Static methods | 7 | 4.79% |
▷ Public methods | 146 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
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
There were not PNG files found in your plugin