Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.19MB] [CPU: ▼16.41ms] Passed 4 tests
Server-side resources used by Ninja Gutenberg Blocks - Gutenberg Blocks Collection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.26 ▼2.86 |
Dashboard /wp-admin | 3.39 ▲0.04 | 49.25 ▼16.84 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.78 ▼1.79 |
Add New Post /wp-admin/post-new.php | 4.90 ▼0.98 | 54.06 ▼44.15 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.52 ▲2.99 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ninja Gutenberg Blocks - Gutenberg Blocks Collection
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲187 | 13.72 ▼0.60 | 10.32 ▲8.54 | 38.51 ▼4.51 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.03 | 99.59 ▼16.60 | 41.35 ▼0.83 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.08 | 36.55 ▼1.73 | 32.95 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6,188 ▲4,674 | 19.77 ▲2.14 | 962.29 ▲274.59 | 68.66 ▲8.02 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.13 ▼0.05 | 103.65 ▼3.00 | 42.41 ▼3.83 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-gutenberg-blocks-gutenberg-blocks-collection/src/blocks/social-share/index.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-gutenberg-blocks-gutenberg-blocks-collection/src/blocks/post-grid/index.php:158
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version not formatted correctly
ninja-gutenberg-blocks-gutenberg-blocks-collection/plugin.php 85% from 13 tests
The main PHP file in "Ninja Gutenberg Blocks - Gutenberg Blocks Collection" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ninja-gutenberg-blocks-gutenberg-blocks-collection.php" instead of "plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,346 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 69 | 1,228 | 1,271 | 8,235 |
Sass | 23 | 113 | 40 | 1,973 |
PHP | 5 | 80 | 69 | 460 |
CSS | 8 | 65 | 10 | 436 |
Markdown | 1 | 44 | 0 | 199 |
SVG | 1 | 1 | 0 | 24 |
JSON | 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.49 |
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 | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/blocks/block-profile/image/social-bg.png | 3.56KB | 3.33KB | ▼ 6.58% |