Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.30ms] Passed 4 tests
An overview of server-side resources used by Which Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.07 ▼2.97 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.40 ▼10.67 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.62 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.40 ▲1.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.67 ▼4.04 |
Which Blocks /wp-admin/tools.php?page=which-blocks | 3.35 | 42.19 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Which Blocks: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼1.08 | 4.97 ▲2.77 | 43.44 ▼0.06 |
Dashboard /wp-admin | 2,207 ▲19 | 4.86 ▼0.04 | 115.15 ▼1.31 | 38.95 ▼11.38 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.03 | 39.25 ▲2.48 | 35.86 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.17 ▲0.14 | 652.84 ▼19.81 | 50.35 ▼3.91 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.03 | 96.60 ▼12.09 | 40.53 ▼5.51 |
Which Blocks /wp-admin/tools.php?page=which-blocks | 819 | 2.03 | 23.80 | 26.11 |
Uninstaller [IO: ▲0.00MB] [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
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/which-blocks/which-blocks.php on line 19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/which-blocks/which-blocks.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/which-blocks/src/class-blocks-list-table.php:16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/which-blocks/which-blocks.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: blocks usage, statistics, block, block editor
which-blocks/which-blocks.php 92% from 13 tests
The main file in "Which Blocks" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin290 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 56 | 138 | 178 |
Markdown | 5 | 62 | 0 | 112 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 5 | 35.71% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.79MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-1544x500.png | 463.14KB | 143.03KB | ▼ 69.12% |
.wordpress-org/screenshot-1.png | 63.57KB | 19.51KB | ▼ 69.31% |
.wordpress-org/icon-256x256.png | 107.95KB | 29.34KB | ▼ 72.82% |
.wordpress-org/banner-772x250.png | 141.82KB | 43.52KB | ▼ 69.32% |
.wordpress-org/icon-128x128.png | 32.42KB | 9.91KB | ▼ 69.42% |