Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.25ms] Passed 4 tests
Server-side resources used by I Draw
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.50 ▼1.67 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.10 ▼7.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.60 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.32 ▼16.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 30.67 ▼7.00 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for I Draw
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.11 | 4.78 ▲2.98 | 45.52 ▼3.41 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼1.04 | 98.35 ▼3.59 | 36.42 ▼9.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.06 | 33.06 ▼1.19 | 32.67 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 23.27 ▲0.11 | 622.46 ▲32.52 | 56.00 ▼0.29 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.04 | 94.86 ▼8.47 | 42.68 ▼4.63 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/idraw/tinymce/diagram/js/idraw.php
- > /wp-content/plugins/idraw/tinymce/idraw.php
- > /wp-content/plugins/idraw/idraw_upload.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idraw/idraw.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== idraw ===
) - Screenshots: Please add images for these screenshots: #1 (Button in post/page editor to activation idraw editor.), #2 (Main dialog), #3 (Sample diagram.), #4 ("New" menu.)
idraw/idraw.php 92% from 13 tests
The primary PHP file in "I Draw" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,117 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 143 | 10 | 767 |
PHP | 4 | 66 | 29 | 222 |
JavaScript | 5 | 25 | 17 | 128 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
10 PNG files occupy 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce/diagram/images/image.png | 1.74KB | 1.52KB | ▼ 12.81% |
screenshot-3.png | 82.34KB | 34.12KB | ▼ 58.56% |
tinymce/diagram/images/idraw.png | 89.46KB | 30.27KB | ▼ 66.17% |
screenshot-1.png | 22.81KB | 10.92KB | ▼ 52.12% |
screenshot-2.png | 41.19KB | 19.27KB | ▼ 53.21% |