Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/genesis-content-blurbs/content-blurbs.php+20
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼196.43ms] Passed 4 tests
Server-side resources used by Genesis Content Blurbs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.93 | 5.17 ▼23.75 |
Dashboard /wp-admin | 1.82 ▼1.24 | 14.39 ▼31.97 |
Posts /wp-admin/edit.php | 1.82 ▼1.30 | 7.91 ▼49.56 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 7.55 ▼675.99 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.13 ▼28.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_lp-content-blurb |
Browser metrics Passed 4 tests
A check of browser resources used by Genesis Content Blurbs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.25 ▲0.72 | 26.15 ▲15.11 | 72.70 ▲22.93 |
Dashboard /wp-admin | 2,970 ▲39 | 5.92 ▲0.00 | 163.33 ▲10.64 | 135.49 ▼9.33 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 77.90 ▲7.59 | 116.70 ▲9.13 |
Add New Post /wp-admin/post-new.php | 1,581 ▼102 | 16.43 ▼2.31 | 446.29 ▲53.81 | 130.72 ▲16.08 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.07 ▲0.03 | 190.55 ▲31.73 | 148.13 ▲28.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/genesis-content-blurbs/content-blurbs.php+20
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 1 option
- widget_lp-content-blurb
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/genesis-content-blurbs/views/widget.php
- 6× 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/genesis-content-blurbs/content-blurbs.php:20
- > PHP Notice
Undefined variable: text in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 32
- > PHP Notice
Undefined variable: title in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 31
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/genesis-content-blurbs/views/admin.php:2
- > PHP Notice
Undefined variable: layout in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 8
- > PHP Notice
Undefined variable: image in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 28
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please add at least on tag
genesis-content-blurbs/content-blurbs.php 92% from 13 tests
The main PHP script in "Genesis Content Blurbs" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("genesis-content-blurbs.php" instead of "content-blurbs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin252 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 87 | 132 |
CSS | 4 | 18 | 5 | 95 |
JavaScript | 2 | 5 | 1 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/img/layout-blurb-2.png | 3.79KB | 0.45KB | ▼ 88.12% |
views/img/layout-blurb-1.png | 3.67KB | 0.42KB | ▼ 88.55% |