Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.73ms] Passed 4 tests
Analyzing server-side resources used by WPS HTML Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 44.27 ▲0.37 |
Dashboard /wp-admin | 3.39 ▲0.04 | 55.68 ▼1.13 |
Posts /wp-admin/edit.php | 3.44 ▲0.04 | 50.87 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 93.44 ▼7.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 40.39 ▲5.27 |
All Items /wp-admin/edit.php?post_type=wpsbx_block | 3.35 | 39.60 |
Add New /wp-admin/post-new.php?post_type=wpsbx_block | 3.40 | 51.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WPS HTML Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.33 ▼0.02 | 2.09 ▲0.26 | 44.15 ▼0.52 |
Dashboard /wp-admin | 2,225 ▲54 | 5.63 ▼0.06 | 95.39 ▼6.11 | 45.64 ▼9.40 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.97 ▼0.11 | 33.43 ▼2.34 | 37.01 ▲2.92 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.27 ▲0.20 | 638.95 ▼67.51 | 55.53 ▼6.87 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.18 ▲0.00 | 97.58 ▼1.81 | 47.55 ▲1.89 |
All Items /wp-admin/edit.php?post_type=wpsbx_block | 1,099 | 1.93 | 30.05 | 32.38 |
Add New /wp-admin/post-new.php?post_type=wpsbx_block | 2,162 | 7.52 | 173.11 | 65.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 23 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpsbx_block
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 23 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpsbx_block
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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/wps-html-blocks/functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
4 plugin tags: custom shortcode, comments, html blocks, custom blocks
wps-html-blocks/wps html blocks.php 92% from 13 tests
The main PHP script in "WPS HTML Blocks" version 0.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wps-html-blocks.php" instead of "wps html blocks.php")
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
Good job! No executable or dangerous file extensions detected88 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 13 | 88 |
PHP code Passed 2 tests
This is a very shot review 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.25 |
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 | 7 | |
▷ Named functions | 7 | 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
There were not PNG files found in your plugin