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.02MB] [CPU: ▼3.26ms] Passed 4 tests
A check of server-side resources used by Media Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.42 ▼7.44 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.23 ▲6.95 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.08 ▼5.13 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.21 ▲0.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.91 ▼1.38 |
Media Toolkit /wp-admin/upload.php?page=media-toolkit | 3.28 | 33.19 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Media Toolkit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.32 ▲0.11 | 1.74 ▼0.18 | 39.97 ▼7.51 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.04 | 94.28 ▼4.51 | 42.09 ▲0.17 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.95 ▲0.00 | 38.17 ▼2.93 | 35.03 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.35 ▼0.19 | 601.02 ▼8.70 | 52.37 ▲1.30 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.19 ▼0.01 | 94.92 ▼4.64 | 41.41 ▼0.66 |
Media Toolkit /wp-admin/upload.php?page=media-toolkit | 1,083 | 2.00 | 25.26 | 63.96 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/media-toolkit/templates/metaboxes/review.php
- > /wp-content/plugins/media-toolkit/templates/fields/image-max-dimension-field.php
- > /wp-content/plugins/media-toolkit/templates/fields/compression-quality-field.php
- > /wp-content/plugins/media-toolkit/templates/settings-page.php
- > /wp-content/plugins/media-toolkit/templates/metaboxes/template-tags.php
- > /wp-content/plugins/media-toolkit/media-toolkit.php
- > /wp-content/plugins/media-toolkit/templates/fields/rename-uploaded-image-field.php
- > /wp-content/plugins/media-toolkit/templates/fields/replace-original-image-field.php
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: photo quality, media toolkit, media library, image dimensions, image compression
media-toolkit/media-toolkit.php Passed 13 tests
Analyzing the main PHP file in "Media Toolkit" version 1.0
31 characters long description:
Toolkit for media in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,798 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 325 | 636 | 1,005 |
CSS | 2 | 93 | 29 | 435 |
Sass | 1 | 42 | 6 | 220 |
TypeScript | 1 | 30 | 2 | 97 |
JSON | 3 | 0 | 0 | 40 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 19 | 35.19% |
▷ Public methods | 50 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.41% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 46.11KB | 16.59KB | ▼ 64.02% |