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: ▲0.38MB] [CPU: ▲0.34ms] Passed 4 tests
Analyzing server-side resources used by Nova Blocks by Pixelgrade
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 50.44 ▲5.84 |
Dashboard /wp-admin | 3.67 ▲0.33 | 53.56 ▼13.24 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.96 ▲1.84 |
Add New Post /wp-admin/post-new.php | 7.78 ▲1.89 | 112.29 ▲8.61 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 42.43 ▲6.93 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 548 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Nova Blocks by Pixelgrade
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 13.57 ▼0.78 | 12.75 ▲10.95 | 36.79 ▼5.72 |
Dashboard /wp-admin | 2,192 ▲12 | 5.61 ▼0.01 | 90.35 ▼3.73 | 37.91 ▼6.85 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.02 | 38.78 ▲3.65 | 36.73 ▲1.47 |
Add New Post /wp-admin/post-new.php | 29,672 ▲28,137 | 25.16 ▲6.94 | 2,090.23 ▲1,434.54 | 41.11 ▼25.97 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.01 | 99.10 ▼10.50 | 41.46 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/headline-2.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/posts-1.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/posts-2.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nova-blocks/lib/rest-api.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/testimonials-3.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/testimonials-4.php:6
- > PHP Fatal error
Uncaught Error: Class 'Walker_Comment' not found in wp-content/plugins/nova-blocks/build/block-library/blocks/post-comments/lib/renderers/class-novablocks-walker-comment.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/testimonials-1.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nova-blocks/lib/patterns/posts-3.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nova-blocks/lib/theme-supports.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: page builder, gutenberg blocks, page building, block enabled, posts collection...
nova-blocks/nova-blocks.php 92% from 13 tests
Analyzing the main PHP file in "Nova Blocks by Pixelgrade" version 2.1.6
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 254 characters long)
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
No dangerous file extensions were detected12,116 lines of code in 359 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 1,814 | 2,391 | 6,989 |
JavaScript | 61 | 1,010 | 440 | 2,852 |
JSON | 61 | 6 | 0 | 1,625 |
CSS | 75 | 3 | 4 | 450 |
SVG | 43 | 0 | 0 | 200 |
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.46 |
Average class complexity | 28.92 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 235 | |
▷ Static methods | 21 | 8.94% |
▷ Public methods | 166 | 70.64% |
▷ Protected methods | 51 | 21.70% |
▷ Private methods | 18 | 7.66% |
Functions | 232 | |
▷ Named functions | 225 | 96.98% |
▷ Anonymous functions | 7 | 3.02% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
packages/block-library/src/blocks/openhours/assets/opening_hours_scheme.png | 40.97KB | 13.46KB | ▼ 67.16% |