10% wp-html-imports-helper

Code Review | WP HTML Imports Helper

WordPress plugin WP HTML Imports Helper scored10%from 54 tests.

About plugin

  • Plugin page: wp-html-imports-h...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Jan 14, 2016
  • Latest release: Jan 14, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: extendwings (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /952 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-html-imports-helper/class.wp-documents.php+39
    Declaration of WP_Documents::do_item($handle) should be compatible with WP_Dependencies::do_item($handle, $group = false)

Server metrics [RAM: ▼1.97MB] [CPU: ▼52.56ms] Passed 4 tests

An overview of server-side resources used by WP HTML Imports Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.04 ▼32.73
Dashboard /wp-admin2.05 ▼1.305.62 ▼53.64
Posts /wp-admin/edit.php2.05 ▼1.317.46 ▼37.43
Add New Post /wp-admin/post-new.php2.05 ▼3.844.93 ▼86.44
Media Library /wp-admin/upload.php2.05 ▼1.185.86 ▼29.02

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP HTML Imports Helper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.341.77 ▲0.1840.73 ▲1.79
Dashboard /wp-admin2,195 ▲145.56 ▼0.1586.23 ▼15.6638.53 ▼0.91
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0239.11 ▲3.6435.05 ▲0.31
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.05665.41 ▼15.8063.70 ▲3.62
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.0592.34 ▼12.0443.91 ▼3.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/wp-html-imports-helper/class.wp-documents.php+39
    Declaration of WP_Documents::do_item($handle) should be compatible with WP_Dependencies::do_item($handle, $group = false)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-html-imports-helper/wp-html-import-helper.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Dependencies' not found in wp-content/plugins/wp-html-imports-helper/class.wp-documents.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: The plugin tags were not defined
Please take inspiration from this readme.txt

wp-html-imports-helper/wp-html-import-helper.php 85% from 13 tests

Analyzing the main PHP file in "WP HTML Imports Helper" version 0.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-html-imports-helper.php" instead of "wp-html-import-helper.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP340191131

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin