Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.46ms] Passed 4 tests
Analyzing server-side resources used by Latest Posts Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.63 ▲1.24 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.64 ▼2.83 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.25 ▼8.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.30 ▼16.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.82 ▲6.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Latest Posts Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.37 ▲0.01 | 1.73 ▼0.35 | 43.28 ▼1.79 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.04 | 90.07 ▼13.39 | 39.12 ▼9.05 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.06 | 38.39 ▲0.98 | 35.00 ▼1.72 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,840 | 27.52 ▲3.98 | 929.18 ▲266.97 | 60.05 ▲7.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.03 | 100.09 ▼12.28 | 44.77 ▼1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/latest-posts-block/plugin.php:66
- > 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 93% from 29 tests
readme.txt Passed 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
5 plugin tags: gutenberg blocks, latest posts, latest posts block, gutenberg, block
latest-posts-block/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Latest Posts Block" version 1.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("latest-posts-block.php" instead of "plugin.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "5.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin508 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 57 | 99 | 365 |
Sass | 2 | 7 | 0 | 39 |
PHP | 2 | 8 | 23 | 36 |
CSS | 2 | 0 | 8 | 34 |
JSON | 1 | 0 | 0 | 34 |
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.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin