Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.03ms] Passed 4 tests
An overview of server-side resources used by Posts List Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.63 ▼2.91 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.84 ▲0.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.83 ▼3.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.15 ▲2.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.34 ▲2.59 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Posts List Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.23 ▼1.02 | 1.90 ▲0.01 | 41.09 ▼2.67 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲0.99 | 94.63 ▼22.52 | 37.41 ▼5.04 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 40.79 ▼0.23 | 34.88 ▼1.26 |
Add New Post /wp-admin/post-new.php | 6,180 ▲4,666 | 19.26 ▲1.34 | 907.56 ▲302.68 | 57.95 ▲11.90 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.20 ▼0.02 | 94.38 ▼0.32 | 42.41 ▲0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posts-list-block/posts-list-block.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function a8c_pl_render_template() in wp-content/plugins/posts-list-block/posts-list-block/templates/posts-list.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/posts-list-block/posts-list-block/templates/no-posts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/posts-list-block/posts-list-block/templates/post-item.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gutenberg, block, editor, blog, blocks
posts-list-block/posts-list-block.php Passed 13 tests
The main file in "Posts List Block" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
A block to display a list of your latest posts, similar to your blog page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin255 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 39 | 101 | 182 |
JavaScript | 3 | 3 | 9 | 53 |
JSON | 2 | 0 | 0 | 11 |
Sass | 1 | 1 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin