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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.26 ▲0.96 |
Dashboard /wp-admin | 3.51 ▲0.21 | 46.26 ▲0.19 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 47.28 ▼2.09 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 96.86 ▼5.85 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.09 ▼13.54 |
TailPress /wp-admin/options-general.php?page=tailpress-settings | 3.34 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲135 | 16.57 ▲1.82 | 27.59 ▲25.82 | 38.82 ▼1.64 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.01 | 100.51 ▼9.84 | 38.90 ▼4.16 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 40.30 ▼0.70 | 35.01 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,537 ▼140 | 24.04 ▼0.57 | 718.67 ▲69.03 | 60.82 ▲7.58 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.21 ▼0.03 | 96.34 ▼32.73 | 46.79 ▼3.54 |
TailPress /wp-admin/options-general.php?page=tailpress-settings | 901 | 2.21 | 25.95 | 30.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 246 | 478 | 1,154 |
JavaScript | 7 | 52 | 133 | 281 |
JSON | 2 | 0 | 0 | 21 |
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 code | 0.33 |
Average class complexity | 11.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 19 | 20.43% |
▷ Public methods | 85 | 91.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.60% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
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
PNG images were not found in this plugin