Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼170.57ms] Passed 4 tests
Analyzing server-side resources used by Diviner Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.81 ▲11.78 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.02 ▲2.73 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 41.75 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 87.95 ▼679.25 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.68 ▼1.48 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Diviner Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 15.83 ▲0.22 | 8.81 ▼1.10 | 46.65 ▼1.27 |
Dashboard /wp-admin | 2,993 ▲62 | 5.90 ▼0.14 | 134.51 ▼0.15 | 107.23 ▼16.91 |
Posts /wp-admin/edit.php | 2,767 ▲28 | 2.70 ▼0.01 | 66.41 ▲2.55 | 89.04 ▼6.69 |
Add New Post /wp-admin/post-new.php | 1,516 ▼2,118 | 18.56 ▲3.54 | 370.64 ▼88.88 | 108.79 ▼5.26 |
Media Library /wp-admin/upload.php | 1,833 ▲26 | 5.02 ▼0.05 | 150.10 ▼1.99 | 128.38 ▲6.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/demo_import.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/diviner-blocks/inc/block_category.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/notice.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/diviner-blocks/diviner-blocks.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/plugin_setup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/block_setup.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
3 plugin tags: gutenberg, blocks, diviner
diviner-blocks/diviner-blocks.php Passed 13 tests
Analyzing the main PHP file in "Diviner Blocks" version 1.0
51 characters long description:
Custom Gutenberg Blocks for Diviner WordPress Theme
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin70,838 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 3 | 588 | 1,176 | 67,894 |
JavaScript | 16 | 342 | 614 | 2,343 |
CSS | 4 | 0 | 16 | 287 |
PHP | 7 | 45 | 28 | 181 |
LESS | 3 | 12 | 7 | 133 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin