Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼294.15ms] Passed 4 tests
Server-side resources used by Gravitate Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.30 | 55.07 ▼5.74 |
Dashboard /wp-admin | 3.73 ▲0.32 | 37.08 ▲3.48 |
Posts /wp-admin/edit.php | 3.95 ▲0.31 | 42.44 ▲2.53 |
Add New Post /wp-admin/post-new.php | 7.19 ▲0.21 | 94.39 ▼1,175.80 |
Media Library /wp-admin/upload.php | 3.64 ▲0.35 | 26.46 ▲2.43 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 1 new option
New WordPress options |
---|
gravitate_blocks_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Gravitate Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲94 | 15.93 ▼0.03 | 6.95 ▲0.86 | 2.36 ▼0.08 |
Dashboard /wp-admin | 2,930 ▲69 | 6.23 ▲0.04 | 120.72 ▼14.22 | 156.53 ▼8.88 |
Posts /wp-admin/edit.php | 2,739 ▲54 | 3.28 ▲0.04 | 65.61 ▼1.30 | 144.12 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,649 ▼41 | 19.68 ▼0.99 | 385.02 ▼68.70 | 156.17 ▼0.84 |
Media Library /wp-admin/upload.php | 1,740 ▲42 | 5.52 ▲0.04 | 143.27 ▲1.01 | 193.70 ▲7.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- gravitate_blocks_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gravitate-blocks/library/includes/developer.php
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_sub_field() in wp-content/plugins/gravitate-blocks/grav-blocks/title/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'GRAV_BLOCKS' not found in wp-content/plugins/gravitate-blocks/grav-blocks/testimonials/block_fields.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function get_sub_field() in wp-content/plugins/gravitate-blocks/grav-blocks/testimonials/block.php:2
- > PHP Notice
Undefined variable: block_background_image in wp-content/plugins/gravitate-blocks/grav-blocks/calltoaction/block_fields.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'GRAV_BLOCKS' not found in wp-content/plugins/gravitate-blocks/grav-blocks/media/block_fields.php:38
- > PHP Fatal error
Uncaught Error: Class 'GRAV_BLOCKS' not found in wp-content/plugins/gravitate-blocks/grav-blocks/media-content/block.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gravitate-blocks/gravitate-blocks.php:10
- > PHP Fatal error
Uncaught Error: Class 'GRAV_BLOCKS' not found in wp-content/plugins/gravitate-blocks/grav-blocks/media-content/block_fields.php:62
- > PHP Notice
Undefined variable: block in wp-content/plugins/gravitate-blocks/grav-blocks/media-gallery/block_fields.php on line 43
- > PHP Notice
Undefined variable: block_background_image in wp-content/plugins/gravitate-blocks/grav-blocks/title/block_fields.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: gravitate, advanced custom fields, acf, content blocks
gravitate-blocks/gravitate-blocks.php Passed 13 tests
Analyzing the main PHP file in "Gravitate Blocks" version 1.7.5
22 characters long description:
Create Content Blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,119 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 430 | 501 | 3,150 |
CSS | 5 | 230 | 41 | 1,953 |
Sass | 3 | 23 | 2 | 561 |
SVG | 12 | 0 | 12 | 397 |
JavaScript | 2 | 2 | 16 | 26 |
JSON | 1 | 0 | 0 | 21 |
Ruby | 1 | 8 | 10 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 132.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 255.00 |
Average method complexity | 6.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 61 | 80.26% |
▷ Public methods | 72 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
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 |
library/images/gravitate-logo.png | 5.11KB | 2.51KB | ▼ 50.79% |