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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.59ms] Passed 4 tests
This is a short check of server-side resources used by Textile Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 40.62 ▼0.77 |
Dashboard /wp-admin | 3.43 ▲0.09 | 48.21 ▼3.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.15 | 47.30 ▼3.18 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.09 | 84.13 ▼35.09 |
Media Library /wp-admin/upload.php | 3.36 ▲0.09 | 39.48 ▲0.53 |
Textile Tools /wp-admin/plugins.php?page=wptextile | 3.43 | 37.01 |
Server storage [IO: ▲5.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Textile Tools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.40 ▼0.95 | 7.61 ▲5.91 | 43.47 ▼2.16 |
Dashboard /wp-admin | 2,202 ▲22 | 5.67 ▲0.04 | 85.94 ▼0.96 | 39.70 ▼3.15 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.15 ▲0.13 | 36.31 ▼0.58 | 34.92 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.16 ▲0.08 | 670.70 ▲37.20 | 50.98 ▼7.29 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.13 ▼0.06 | 141.19 ▲40.08 | 55.54 ▲13.71 |
Textile Tools /wp-admin/plugins.php?page=wptextile | 1,496 | 7.89 | 377.02 | 39.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_action() in wp-content/plugins/textile-tools/includes/WPTextilePlugin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Archive example archive_example.png), #2 (Buckets example buckets_example.png)
textile-tools/textile.php 85% from 13 tests
The main file in "Textile Tools" v. 2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 216 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("textile-tools.php" instead of "textile.php")
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
Everything looks great! No dangerous files found in this plugin5,606 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 2,329 |
TypeScript | 9 | 408 | 330 | 1,985 |
PHP | 4 | 133 | 111 | 739 |
CSS | 1 | 58 | 13 | 347 |
SVG | 5 | 0 | 3 | 173 |
JavaScript | 3 | 6 | 2 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/archive_example.png | 60.02KB | 30.32KB | ▼ 49.48% |
assets/buckets_example.png | 52.56KB | 25.79KB | ▼ 50.93% |