Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.36ms] Passed 4 tests
An overview of server-side resources used by Draft - Add Tailwind CSS to WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.10 ▼3.92 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.53 ▼0.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.99 ▼5.48 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.09 ▲4.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.76 ▲4.78 |
Draft /wp-admin/options-general.php?page=draft-settings | 3.25 | 36.90 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
draft_settings |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Draft - Add Tailwind CSS to WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 373 ▼2,388 | 8.02 ▼6.59 | 256.22 ▲253.94 | 43.56 ▲0.64 |
Dashboard /wp-admin | 2,197 ▲23 | 5.59 ▲0.02 | 93.88 ▼5.99 | 42.93 ▲3.62 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.99 ▼0.12 | 39.70 ▲0.69 | 35.64 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,622 ▲96 | 27.65 ▲4.38 | 983.98 ▲292.63 | 38.16 ▼14.24 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.18 ▼0.02 | 105.74 ▼2.71 | 48.45 ▲2.71 |
Draft /wp-admin/options-general.php?page=draft-settings | 1,517 | 28.40 | 897.11 | 94.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- draft_settings
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WebsiteBuilder\\plugin_basename() in wp-content/plugins/website-builder/website-builder.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=draft-settings
- > Console-api (warning) in wp-content/plugins/website-builder/build/tailwind.cdn.js?ver=2.0.0+63:1268
cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation
- > GET request to /wp-admin/options-general.php?page=draft-settings
- > Console-api (warning) in wp-content/plugins/website-builder/build/tailwind.cdn.js?ver=2.0.0+0:20775
- > GET request to /wp-admin/options-general.php?page=draft-settings
- > Console-api (warning) in wp-content/plugins/website-builder/build/tailwind.cdn.js?ver=2.0.0+0:20805
warn" "-" "No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.
- > GET request to /wp-admin/options-general.php?page=draft-settings
- > Console-api (warning) in wp-content/plugins/website-builder/build/tailwind.cdn.js?ver=2.0.0+0:20805
warn" "-" "https://tailwindcss.com/docs/content-configuration
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
website-builder/website-builder.php 69% from 13 tests
The primary PHP file in "Draft - Add Tailwind CSS to WordPress" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0.0" instead of "5.6")
- 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
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3.2" instead of "5.0")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected542 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 119 | 333 | 490 |
JavaScript | 3 | 8 | 10 | 49 |
CSS | 3 | 1 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 8 | 28.57% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected