Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.20ms] Passed 4 tests
Server-side resources used by BlocksInform
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.84 ▼3.70 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.16 ▼2.03 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.93 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.48 ▼12.15 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.53 ▲1.47 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp__blocksinform_settings |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for BlocksInform
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.74 ▲0.09 | 1.77 ▼0.12 | 42.32 ▼4.69 |
Dashboard /wp-admin | 2,221 ▲36 | 4.94 ▼0.91 | 93.81 ▼15.69 | 72.87 ▲27.44 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.97 ▼0.08 | 35.12 ▲0.65 | 32.40 ▼4.09 |
Add New Post /wp-admin/post-new.php | 1,680 ▲147 | 22.37 ▼0.73 | 712.83 ▲70.84 | 60.74 ▼2.16 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.18 ▼0.04 | 95.62 ▼2.72 | 68.00 ▲24.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp__blocksinform_settings
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blocksinform/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/blocksinform/settings.php:90
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blocksinform/widget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (**Native Network**), #2 (**Traffic Exchange Service**), #3 (**Related Content Service**), #4 (**Key Features**), #5 (**BlocksInform's settings page**), #6 (**Widget Example**)
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
- Requires at least: Version format is invalid
blocksinform/blocksinform_widget.php 92% from 13 tests
The primary PHP file in "BlocksInform" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blocksinform.php" instead of "blocksinform_widget.php")
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
Success! There were no dangerous files found in this plugin433 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 82 | 46 | 355 |
JavaScript | 4 | 20 | 8 | 78 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/blocksinform.png | 159.86KB | 70.63KB | ▼ 55.82% |
img/arrow_right_32.png | 4.12KB | 0.19KB | ▼ 95.30% |
img/question-mark.png | 1.20KB | 0.29KB | ▼ 75.73% |
img/blocksinform_icon.png | 1.39KB | 0.97KB | ▼ 29.72% |