Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼3.17ms] Passed 4 tests
An overview of server-side resources used by Custom Post Type Widget Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 44.13 ▲3.03 |
Dashboard /wp-admin | 3.71 ▲0.36 | 50.10 ▼14.51 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 50.39 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 85.94 ▼0.78 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 36.96 ▲5.13 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Post Type Widget Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲56 | 14.19 ▼0.16 | 1.76 ▼0.07 | 44.35 ▲0.04 |
Dashboard /wp-admin | 2,192 ▲18 | 5.55 ▼0.07 | 89.80 ▼11.02 | 39.98 ▼7.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.08 | 37.21 ▲1.09 | 34.94 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6,194 ▲4,655 | 19.34 ▼3.97 | 860.13 ▲226.95 | 56.74 ▲5.04 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.02 | 97.22 ▲0.74 | 38.90 ▼4.33 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Block category 'Custom Post Type Widget Blocks') image required
custom-post-type-widget-blocks/custom-post-type-widget-blocks.php Passed 13 tests
The principal PHP file in "Custom Post Type Widget Blocks" v. 1.6.2 is loaded by WordPress automatically on each request
58 characters long description:
Custom Post Type Widgets for the Block Editor (Gutenberg).
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
No dangerous file extensions were detected2,533 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 298 | 619 | 1,429 |
JSON | 8 | 0 | 0 | 535 |
CSS | 4 | 20 | 6 | 292 |
PO File | 1 | 117 | 136 | 275 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 30.88 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 6.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.04KB | 12.21KB | ▼ 70.24% |