78% tailpress

Code Review | TailPress – Tailwind for WordPress

WordPress plugin TailPress – Tailwind for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: tailpress
  • Plugin version: 0.4.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Apr 4, 2023
  • Number of updates: 17
  • Update frequency: every 17.6 days
  • Top authors: freshbrewedweb (58.82%)blockpress (47.06%)

Code review

54 tests

User reviews

10 reviews

Install metrics

800+ active /7,502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼5.32ms] Passed 4 tests

Analyzing server-side resources used by TailPress – Tailwind for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.26 ▲0.96
Dashboard /wp-admin3.51 ▲0.2146.26 ▲0.19
Posts /wp-admin/edit.php3.56 ▲0.2147.28 ▼2.09
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.86 ▼5.85
Media Library /wp-admin/upload.php3.37 ▲0.1435.09 ▼13.54
TailPress /wp-admin/options-general.php?page=tailpress-settings3.3431.70

Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
tailpress_plugin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for TailPress – Tailwind for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13516.57 ▲1.8227.59 ▲25.8238.82 ▼1.64
Dashboard /wp-admin2,213 ▲255.88 ▼0.01100.51 ▼9.8438.90 ▼4.16
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0340.30 ▼0.7035.01 ▼0.88
Add New Post /wp-admin/post-new.php1,537 ▼14024.04 ▼0.57718.67 ▲69.0360.82 ▲7.58
Media Library /wp-admin/upload.php1,386 ▲44.21 ▼0.0396.34 ▼32.7346.79 ▼3.54
TailPress /wp-admin/options-general.php?page=tailpress-settings9012.2125.9530.23

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • tailpress_plugin_options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tailpress/templates/sections/caching.php
    • > /wp-content/plugins/tailpress/templates/sections/general_settings.php
    • > /wp-content/plugins/tailpress/templates/settings/general_settings/clear-cache.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/tailpress/templates/settings/general_settings/clear-cache.php on line 2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/tailpress/templates/settings/general_settings/cleanup.php:3
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/tailpress/templates/settings/general_settings/cleanup.php on line 3
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/tailpress/templates/settings/general_settings/cleanup.php on line 2
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/tailpress/templates/settings/general_settings/clear-cache.php on line 2
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/tailpress/templates/settings/general_settings/cleanup.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tailpress/templates/settings/general_settings/config.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gutenberg, css, utility classes, tailwind, blocks

tailpress/tailpress.php 92% from 13 tests

Analyzing the main PHP file in "TailPress – Tailwind for WordPress" version 0.4.4
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,456 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP222464781,154
JavaScript752133281
JSON20021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.55
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods93
▷ Static methods1920.43%
▷ Public methods8591.40%
▷ Protected methods00.00%
▷ Private methods88.60%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
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
PNG images were not found in this plugin