Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼315.94ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Post Block - Display Posts in Gutenberg Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 52.31 ▲2.08 |
Dashboard /wp-admin | 3.48 ▲0.08 | 33.13 ▼0.90 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 37.54 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.00 | 95.98 ▼1,258.56 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 23.35 ▼5.85 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Post Block - Display Posts in Gutenberg Editor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲37 | 16.55 ▲1.00 | 7.48 ▲1.61 | 2.28 ▼0.26 |
Dashboard /wp-admin | 2,892 ▲34 | 6.10 ▼0.16 | 117.78 ▼12.15 | 150.58 ▼7.73 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.23 ▼0.01 | 60.39 ▼4.03 | 140.11 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,680 ▲19 | 16.53 ▲0.48 | 406.27 ▼56.88 | 161.48 ▼1.97 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.52 ▼0.01 | 137.01 ▼0.33 | 185.64 ▼26.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant AP_BLOCK_PLUGIN_VERSION - assumed 'AP_BLOCK_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-post-block/dist/editor.asset.php on line 3
- > PHP Warning
Use of undefined constant AP_BLOCK_PLUGIN_VERSION - assumed 'AP_BLOCK_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-post-block/dist/script.asset.php on line 3
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: Version not formatted correctly
advanced-post-block/plugin.php 92% from 13 tests
The main PHP file in "Advanced Post Block - Display Posts in Gutenberg Editor" ver. 1.6.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-post-block.php" instead of "plugin.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 plugin764 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 19 | 410 |
JSON | 1 | 0 | 0 | 348 |
JavaScript | 4 | 1 | 14 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin