Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.45ms] Passed 4 tests
A check of server-side resources used by Advanced Posts Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.25 ▲4.38 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.62 ▼0.37 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.39 ▼3.77 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 79.91 ▼6.02 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 46.87 ▲14.44 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Posts Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.24 ▼0.97 | 2.21 ▲0.34 | 41.15 ▼2.64 |
Dashboard /wp-admin | 2,203 ▲29 | 5.82 ▲0.79 | 98.55 ▼7.13 | 39.36 ▼1.88 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.96 ▼0.08 | 38.81 ▼2.73 | 34.32 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,556 ▲21 | 25.01 ▲1.81 | 607.35 ▲3.34 | 29.10 ▼14.56 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▼0.06 | 109.08 ▲6.19 | 48.14 ▲6.00 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > 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 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/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/post/template.php:16
- > 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
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: 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #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 5.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
26 characters long description:
Customizable posts blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,430 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 73 | 69 | 741 |
PHP | 12 | 96 | 312 | 377 |
JSON | 7 | 0 | 0 | 312 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 65.00% |
▷ Protected methods | 5 | 25.00% |
▷ Private methods | 2 | 10.00% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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.34MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 89.01KB | 26.50KB | ▼ 70.23% |
screenshot-4.png | 74.00KB | 20.99KB | ▼ 71.63% |
screenshot-3.png | 94.66KB | 27.00KB | ▼ 71.47% |
screenshot-2.png | 94.07KB | 26.77KB | ▼ 71.54% |