Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.50ms] Passed 4 tests
A check of server-side resources used by nBlocks - Responsive Gutenberg News Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.99 ▲0.57 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.25 ▼2.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 56.69 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 101.30 ▲2.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 46.83 ▲7.88 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for nBlocks - Responsive Gutenberg News Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲14 | 13.20 ▼1.32 | 1.77 ▲0.11 | 42.67 ▲0.01 |
Dashboard /wp-admin | 2,206 ▼3 | 4.86 ▼1.01 | 110.57 ▲4.30 | 39.41 ▼3.47 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.02 | 40.52 ▲4.89 | 35.47 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,644 ▲130 | 21.00 ▲3.34 | 794.07 ▲151.97 | 58.41 ▲6.75 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.00 | 103.25 ▼0.77 | 43.72 ▲1.66 |
Uninstaller [IO: ✅] [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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: args in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-featured-big-multiloop.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-center-image.php:40
- > PHP Notice
Undefined variable: args in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-center-image.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-3col-noimage.php:40
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-5col-masonry.php:40
- > PHP Notice
Undefined variable: args in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-3col-masonry.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-tiny-block-one.php:40
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-featured-big.php:40
- > PHP Notice
Undefined variable: args in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-tiny-block-one.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/nblocks/blocks/post-filter/templates/nblock-featured-big-multiloop.php:41
- > PHP Notice
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
nblocks/n-blocks.php 77% from 13 tests
The principal PHP file in "nBlocks - Responsive Gutenberg News Blocks" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("nblocks.php" instead of "n-blocks.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin20,506 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 18,268 |
JavaScript | 5 | 23 | 73 | 1,110 |
PHP | 13 | 19 | 27 | 1,027 |
Sass | 2 | 5 | 0 | 70 |
Markdown | 1 | 13 | 0 | 29 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 3 | |
▷ Named functions | 3 | 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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blocks/post-filter/img/lmsp.png | 3.50KB | 1.59KB | ▼ 54.63% |
blocks/post-filter/img/smpsc.png | 3.44KB | 1.67KB | ▼ 51.52% |
blocks/post-filter/img/lf.png | 2.62KB | 1.19KB | ▼ 54.42% |
blocks/post-filter/img/md3c.png | 3.29KB | 1.42KB | ▼ 56.82% |
blocks/post-filter/img/md4c.png | 3.32KB | 1.40KB | ▼ 57.78% |