Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.15ms] Passed 4 tests
An overview of server-side resources used by WoPo Paint
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.92 ▲0.22 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.29 ▲1.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.07 ▼6.30 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.08 ▼11.51 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 30.16 ▼7.00 |
Server storage [IO: ▲36.90MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Total filesystem usage must be limited to 25MB (currently using 36.90MB)
Filesystem: 2,729 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
WoPo Paint: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.28 | 1.79 ▼0.08 | 43.01 ▲1.04 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.02 | 98.29 ▲1.82 | 41.37 ▼2.59 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.04 | 34.90 ▼4.07 | 33.96 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,623 ▲95 | 21.82 ▼1.32 | 643.49 ▼72.25 | 36.02 ▼30.00 |
Media Library /wp-admin/upload.php | 1,990 ▲593 | 4.36 ▲0.15 | 99.03 ▼20.42 | 63.76 ▲14.24 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wopo-paint/wopo-paint.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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 to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wopo-paint/wopo-paint.php 77% from 13 tests
Analyzing the main PHP file in "WoPo Paint" version 1.2.0
Please make the necessary changes and fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("5.2.4" instead of "7.1")
- Domain Path: The domain path folder does not exist ("/languages")
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "5.2")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/wopo-paint/editor/lib/tracky-mouse/lib/facemesh/facemesh/group1-shard1of1.bin
- ☣ wp-content/plugins/wopo-paint/editor/lib/tracky-mouse/lib/facemesh/blazeface/group1-shard1of1.bin
- .ahk - AutoHotkey Script in AutoHotkey
- ☣ wp-content/plugins/wopo-paint/editor/help/prettify-html.ahk
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 104 | 36,570 | 40,316 | 209,736 |
JSON | 14 | 0 | 0 | 45,881 |
CSS | 26 | 980 | 1,715 | 7,811 |
SVG | 65 | 15 | 66 | 5,497 |
HTML | 42 | 82 | 129 | 2,029 |
Markdown | 5 | 279 | 0 | 886 |
Bourne Shell | 2 | 35 | 156 | 335 |
PHP | 1 | 12 | 27 | 87 |
AutoHotkey | 1 | 3 | 13 | 53 |
YAML | 2 | 0 | 4 | 19 |
XML | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
142 PNG files occupy 1.24MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
editor/lib/tracky-mouse/images/tracky-mouse-logo-16.png | 0.32KB | 0.29KB | ▼ 9.39% |
editor/help/p_fliph.png | 0.16KB | 0.13KB | ▼ 20.86% |
editor/images/warning-16x16-8bpp.png | 0.41KB | 0.18KB | ▼ 56.83% |
editor/help/p_database.png | 0.14KB | 0.11KB | ▼ 21.28% |
editor/images/icons/ms-icon-70x70.png | 5.27KB | 2.66KB | ▼ 49.57% |