Benchmarks
Plugin footprint Passed 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.10MB] [CPU: ▼152.02ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Posts Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.11 | 24.92 ▲1.34 |
Dashboard /wp-admin | 3.17 ▲0.10 | 31.61 ▼18.68 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 31.03 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.09 | 69.49 ▼590.45 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 21.83 ▼0.28 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Posts Blocks: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲64 | 16.03 ▼0.02 | 5.24 ▼4.28 | 77.40 ▲0.91 |
Dashboard /wp-admin | 2,933 ▲34 | 6.00 ▼0.17 | 123.09 ▼8.59 | 188.84 ▲11.44 |
Posts /wp-admin/edit.php | 2,737 ▼3 | 3.23 ▲0.01 | 62.96 ▼3.82 | 140.69 ▼9.63 |
Add New Post /wp-admin/post-new.php | 3,494 ▼313 | 18.27 ▲2.13 | 409.73 ▼51.38 | 175.07 ▲5.47 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.54 ▲0.02 | 142.57 ▼5.09 | 186.01 ▲0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Posts_Blocks\\Blocks\\Renderer' not found in wp-content/plugins/advanced-posts-blocks/src/blocks/children/class-renderer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/advanced-posts-blocks/src/blocks/posts/template.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/advanced-posts-blocks/src/blocks/post/template.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Advanced_Posts_Blocks\\add_action() in wp-content/plugins/advanced-posts-blocks/src/init.php:12
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Posts_Blocks\\Blocks\\Renderer' not found in wp-content/plugins/advanced-posts-blocks/src/blocks/posts/class-renderer.php:18
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Posts_Blocks\\Blocks\\Renderer' not found in wp-content/plugins/advanced-posts-blocks/src/blocks/post/class-renderer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/advanced-posts-blocks/src/blocks/children/template.php:16
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Blocks), #2 (Multiple Posts Block), #3 (Child Posts Block), #4 (Single Post Block)
advanced-posts-blocks/advanced-posts-blocks.php Passed 13 tests
"Advanced Posts Blocks" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Customizable posts blocks.
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 detected1,399 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 70 | 61 | 772 |
PHP | 13 | 103 | 322 | 413 |
JSON | 4 | 0 | 0 | 214 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 69.57% |
▷ Protected methods | 5 | 21.74% |
▷ Private methods | 2 | 8.70% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 74.00KB | 20.99KB | ▼ 71.63% |
screenshot-1.png | 89.01KB | 26.50KB | ▼ 70.23% |
screenshot-3.png | 94.66KB | 27.00KB | ▼ 71.47% |
screenshot-2.png | 94.07KB | 26.77KB | ▼ 71.54% |