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.01MB] [CPU: ▼4.73ms] Passed 4 tests
Analyzing server-side resources used by WP Paint - WordPress Image Editor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.47 ▼3.96 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.04 ▼3.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.06 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.52 ▼11.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.60 ▲4.15 |
Edit Image /wp-admin/admin.php?page=wp-paint-edit-image | 3.21 | 30.25 |
Server storage [IO: ▲9.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp_paint_activated_on |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Paint - WordPress Image Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.73 ▼0.02 | 1.79 ▲0.01 | 38.99 ▼5.45 |
Dashboard /wp-admin | 2,206 ▲18 | 5.02 ▲0.10 | 108.61 ▲1.00 | 42.37 ▲2.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 39.51 ▲5.02 | 35.70 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 18.33 ▼5.04 | 634.30 ▼47.46 | 34.56 ▼10.01 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.34 ▲0.13 | 99.44 ▼1.15 | 42.52 ▼0.90 |
Edit Image /wp-admin/admin.php?page=wp-paint-edit-image | 744 | 2.02 | 22.23 | 20.26 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- wp_paint_activated_on
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-paint/admin/plugin-activation-error.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
6 plugin tags: media editor, image editor, media, photo editor, image...
wp-paint/wp-paint.php 92% from 13 tests
The entry point to "WP Paint - WordPress Image Editor" version 0.5.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 244 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
Success! There were no dangerous files found in this plugin39,483 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 8,764 | 9,036 | 36,289 |
CSS | 7 | 100 | 53 | 1,888 |
JSON | 1 | 0 | 0 | 934 |
PHP | 4 | 39 | 43 | 372 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 2.64MB with 1.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 6.89KB | 3.41KB | ▼ 50.50% |
static/images/logo-colors.png | 4.37KB | 2.39KB | ▼ 45.28% |
static/images/sprites.png | 6.20KB | 3.92KB | ▼ 36.88% |
assets/screenshot-2.png | 642.40KB | 194.46KB | ▼ 69.73% |
assets/screenshot-1.png | 652.38KB | 186.12KB | ▼ 71.47% |