Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.31ms] Passed 4 tests
An overview of server-side resources used by Static Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.93 ▼2.66 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.85 ▼0.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.81 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.67 ▼1.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.61 ▲2.32 |
Static Blocks /wp-admin/edit.php?post_type=static-block | 3.31 | 36.66 |
Add New /wp-admin/post-new.php?post_type=static-block | 5.95 | 79.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_static_block_widget |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Static Block: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.32 ▼1.05 | 1.84 ▲0.18 | 40.71 ▼8.00 |
Dashboard /wp-admin | 2,233 ▲42 | 5.88 ▲1.01 | 104.55 ▲1.50 | 41.94 ▲0.02 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.02 ▼0.03 | 41.01 ▲1.27 | 34.15 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,640 ▲126 | 18.02 ▲0.50 | 601.60 ▼15.85 | 51.87 ▼1.19 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.33 ▲0.15 | 93.35 ▼9.76 | 41.87 ▼5.26 |
Static Blocks /wp-admin/edit.php?post_type=static-block | 1,095 | 2.00 | 32.88 | 28.16 |
Add New /wp-admin/post-new.php?post_type=static-block | 7,435 | 20.02 | 888.60 | 42.80 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_static_block_widget
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/static-block/static-block.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/static-block/widget.php:2
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: static block, wordpress content, block content, repeat content, static block content...
static-block/static-block.php Passed 13 tests
The entry point to "Static Block" version 2.2 is a PHP file that has certain tags in its header comment area
90 characters long description:
Using this free static block plugin you can show static content in many pages and widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin494 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 23 | 494 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin