Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/dynamic-blocks/src/render/client-logo.php+5
Cannot redeclare register_latest_post_clientlogo() (previously declared in wp-content/plugins/dynamic-blocks/src/render/client-logo.php:5)
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.58ms] Passed 4 tests
A check of server-side resources used by Dynamic Blocks - testimonial gutenberg block, client logo gutenberg block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.46 ▼6.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.00 ▼6.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.47 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.49 ▼10.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.38 ▲3.20 |
Server storage [IO: ▲6.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Dynamic Blocks - testimonial gutenberg block, client logo gutenberg block: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.13 | 1.60 ▼0.29 | 42.52 ▼6.00 |
Dashboard /wp-admin | 2,206 ▲15 | 5.79 ▲0.91 | 97.27 ▼19.63 | 39.76 ▼7.80 |
Posts /wp-admin/edit.php | 2,071 ▼18 | 2.00 ▼0.04 | 34.08 ▼4.53 | 33.90 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.49 ▲0.13 | 665.63 ▼11.16 | 67.69 ▲13.96 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.03 | 105.47 ▲1.51 | 43.91 ▼4.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-blocks/src/fields/testimonial.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-blocks/src/render/client-logo.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-blocks/src/render/testimonial.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-blocks/src/fields/clientlogo-field.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI found ("gutenberglab.com")
dynamic-blocks/plugin.php 85% from 13 tests
The primary PHP file in "Dynamic Blocks - testimonial gutenberg block, client logo gutenberg block" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dynamic-blocks.php" instead of "plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin46,240 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 8,011 | 138 | 33,912 |
JavaScript | 8 | 3,464 | 1,571 | 11,733 |
PHP | 6 | 144 | 131 | 491 |
Markdown | 1 | 23 | 0 | 52 |
Sass | 3 | 4 | 1 | 33 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 31 | |
▷ Named functions | 31 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin