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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.66ms] Passed 4 tests
A check of server-side resources used by DrawIt (draw.io)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.13 ▼2.15 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.37 ▼6.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.87 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.40 ▼0.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.26 ▲0.90 |
DrawIt (draw.io) /wp-admin/options-general.php?page=drawit | 3.23 | 29.75 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DrawIt (draw.io)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.19 ▼1.19 | 5.05 ▲3.29 | 41.95 ▼1.66 |
Dashboard /wp-admin | 2,213 ▲22 | 4.88 ▼1.02 | 107.92 ▲7.06 | 41.53 ▼2.93 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.00 | 39.20 ▲2.88 | 34.61 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 17.41 ▼5.85 | 612.32 ▼63.06 | 60.39 ▲5.74 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.25 ▼0.06 | 96.59 ▼6.29 | 41.50 ▼3.77 |
DrawIt (draw.io) /wp-admin/options-general.php?page=drawit | 971 | 1.88 | 23.74 | 30.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/drawit/drawit.php
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in drawit/assets to your readme.txt
drawit/drawit.php Passed 13 tests
The primary PHP file in "DrawIt (draw.io)" version 1.1.3 is used by WordPress to initiate all plugin functionality
74 characters long description:
Draw and edit flow charts, diagrams, images and more while editing a post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected869 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 112 | 132 | 561 |
JavaScript | 4 | 42 | 42 | 227 |
CSS | 3 | 10 | 0 | 81 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 96.00 |
▷ Minimum class complexity | 96.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/drawit-logo.png | 2.39KB | 2.07KB | ▼ 13.46% |
img/drawit.png | 0.60KB | 0.54KB | ▼ 10.53% |