10% ds-tailored-html

Code Review | Tailored HTML

WordPress plugin Tailored HTML scored 10% from 54 tests.

About plugin

  • Plugin page: ds-tailored-html
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2015
  • Latest release: Apr 28, 2015
  • Number of updates: 47
  • Update frequency: every 1.3 days
  • Top authors: rbakerink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 755 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/ds-tailored-html/ds-tt.php+12
    include(/resources/ds-tt-configuration.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.89ms] Passed 4 tests

Analyzing server-side resources used by Tailored HTML
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.31 ▼38.48
Dashboard /wp-admin2.05 ▼1.265.12 ▼44.12
Posts /wp-admin/edit.php2.05 ▼1.315.38 ▼41.93
Add New Post /wp-admin/post-new.php2.05 ▼3.845.21 ▼95.01
Media Library /wp-admin/upload.php2.05 ▼1.185.99 ▼27.04

Server storage [IO: ▲0.84MB] [DB: ▲0.08MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 94 new files
Database: 2 new tables, 7 new options
New tables
wp_ds_tailored_html_stylesheet
wp_ds_tailored_html
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_ds_tt_id
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Tailored HTML
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲24515.12 ▲0.8211.58 ▲9.8139.74 ▼17.83
Dashboard /wp-admin2,254 ▲665.75 ▲0.88102.87 ▼15.1140.29 ▼7.61
Posts /wp-admin/edit.php2,140 ▲512.47 ▲0.4345.34 ▲7.8235.21 ▲1.47
Add New Post /wp-admin/post-new.php1,540 ▼223.79 ▲5.63733.82 ▲68.3837.37 ▼13.10
Media Library /wp-admin/upload.php1,439 ▲575.03 ▲0.81112.03 ▲16.6851.20 ▲6.90
Tailored HTML /wp-admin/ds-tt-configuration.php260.440.0915.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/ds-tailored-html/ds-tt.php+12
    include(/resources/ds-tt-configuration.php): failed to open stream: No such file or directory
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_ds_tt_id
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ds-tailored-html/ds-tt.php:16
    • > PHP Warning
      include(/resources/ds-tt-configuration.php): failed to open stream: No such file or directory in wp-content/plugins/ds-tailored-html/ds-tt.php on line 12
    • > PHP Warning
      include(/resources/ds-tt-widget.php): failed to open stream: No such file or directory in wp-content/plugins/ds-tailored-html/ds-tt.php on line 14
    • > PHP Warning
      include(): Failed opening '/resources/ds-tt-configuration.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ds-tailored-html/ds-tt.php on line 12
    • > PHP Warning
      include(): Failed opening '/resources/ds-tt-get-configuration.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ds-tailored-html/ds-tt.php on line 13
    • > PHP Warning
      include(): Failed opening '/resources/ds-tt-widget.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ds-tailored-html/ds-tt.php on line 14
    • > PHP Warning
      include(/resources/ds-tt-get-configuration.php): failed to open stream: No such file or directory in wp-content/plugins/ds-tailored-html/ds-tt.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/ds-tt-configuration.php
    • > Network (severe)
    wp-admin/ds-tt-configuration.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
Please take inspiration from this readme.txt

ds-tailored-html/ds-tt.php 92% from 13 tests

The principal PHP file in "Tailored HTML" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ds-tailored-html.php" instead of "ds-tt.php")

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
Success! There were no dangerous files found in this plugin1,785 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46192127748
PHP522938652
CSS8499250
SVG200125
HTML1008
Markdown1102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/help-icon-2.png1.40KB0.48KB▼ 65.51%