78% wps-html-blocks

Code Review | WPS HTML Blocks

WordPress plugin WPS HTML Blocks scored78%from 54 tests.

About plugin

  • Plugin page: wps-html-blocks
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2020
  • Latest release: Oct 13, 2022
  • Number of updates: 14
  • Update frequency: every 70.1 days
  • Top authors: VicToMeyeZR (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /5,062 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0444.27 ▲0.37
Dashboard /wp-admin3.39 ▲0.0455.68 ▼1.13
Posts /wp-admin/edit.php3.44 ▲0.0450.87 ▲1.71
Add New Post /wp-admin/post-new.php5.97 ▲0.0493.44 ▼7.85
Media Library /wp-admin/upload.php3.31 ▲0.0440.39 ▲5.27
All Items /wp-admin/edit.php?post_type=wpsbx_block3.3539.60
Add New /wp-admin/post-new.php?post_type=wpsbx_block3.4051.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.33 ▼0.022.09 ▲0.2644.15 ▼0.52
Dashboard /wp-admin2,225 ▲545.63 ▼0.0695.39 ▼6.1145.64 ▼9.40
Posts /wp-admin/edit.php2,127 ▲271.97 ▼0.1133.43 ▼2.3437.01 ▲2.92
Add New Post /wp-admin/post-new.php1,549 ▲2323.27 ▲0.20638.95 ▼67.5155.53 ▼6.87
Media Library /wp-admin/upload.php1,421 ▲244.18 ▲0.0097.58 ▼1.8147.55 ▲1.89
All Items /wp-admin/edit.php?post_type=wpsbx_block1,0991.9330.0532.38
Add New /wp-admin/post-new.php?post_type=wpsbx_block2,1627.52173.1165.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP3251388

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 code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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