Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼30.96ms] Passed 4 tests
This is a short check of server-side resources used by Post Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 33.87 ▼10.05 |
Dashboard /wp-admin | 3.06 ▼0.29 | 24.67 ▼31.50 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 23.20 ▼23.25 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 24.63 ▼56.13 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 21.15 ▼12.96 |
Post Blocks /wp-admin/options-general.php?page=post-blocks/post-blocks.php | 3.06 | 21.69 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.72 ▼0.67 | 1.63 ▼0.67 | 42.86 ▼3.89 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼1.00 | 112.11 ▲8.49 | 43.11 ▼1.34 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▼0.00 | 40.74 ▲2.37 | 35.56 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.40 ▲5.87 | 580.53 ▼129.19 | 60.88 ▼2.81 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.04 | 95.21 ▼8.66 | 41.72 ▼3.97 |
Post Blocks /wp-admin/options-general.php?page=post-blocks/post-blocks.php | 886 | 2.06 | 21.71 | 29.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=post-blocks/post-blocks.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=post-blocks/post-blocks.php
- > Notice in wp-content/plugins/post-blocks/post-blocks-settings.php+16
Trying to access array offset on value of type bool
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
The following issues need your attention
- 3× 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/post-blocks/post-blocks.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-blocks/post-blocks-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-blocks/widget.php:127
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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:
- Screenshots: Add images for these screenshots: #1 (Screenshot Widget Display), #2 (Screenshot Widget Options), #3 (Screenshot Settings)
post-blocks/post-blocks.php Passed 13 tests
The primary PHP file in "Post Blocks" version 0.0.6 is used by WordPress to initiate all plugin functionality
101 characters long description:
Extends the basic WordPress functionality to enable posts to be listed anywhere you can put a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected251 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 17 | 54 | 251 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin