Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼149.28ms] Passed 4 tests
An overview of server-side resources used by New Posts Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 34.93 ▼1.01 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.26 ▼4.93 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 57.57 ▲9.62 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 84.75 ▼588.50 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.59 ▼2.68 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for New Posts Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,714 ▲118 | 15.86 ▲0.24 | 10.61 ▲0.46 | 46.01 ▼4.25 |
Dashboard /wp-admin | 2,967 ▲36 | 5.92 ▼0.05 | 150.91 ▼2.56 | 138.93 ▲20.86 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 74.61 ▲6.31 | 99.99 ▲5.09 |
Add New Post /wp-admin/post-new.php | 1,879 ▲381 | 19.23 ▲0.34 | 362.87 ▼16.50 | 116.02 ▲3.25 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.01 | 142.99 ▼7.22 | 117.02 ▼8.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: latest posts, feed, block, rss, gutenberg
new-posts-block/plugin.php 92% from 13 tests
The main PHP file in "New Posts Block" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("new-posts-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin768 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSX | 7 | 32 | 0 | 354 |
PHP | 2 | 38 | 21 | 244 |
Sass | 4 | 10 | 0 | 98 |
PO File | 1 | 26 | 26 | 65 |
CSS | 1 | 4 | 0 | 4 |
JavaScript | 1 | 0 | 10 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin