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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.18ms] Passed 4 tests
A check of server-side resources used by WP Media Assistant
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.20 ▼7.98 |
Dashboard /wp-admin | 3.39 ▲0.09 | 54.95 ▲6.18 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 51.58 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 96.48 ▲0.41 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 37.11 ▲1.93 |
WP Media Assistant /wp-admin/upload.php?page=wpma_dashboard | 3.27 | 38.72 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Media Assistant
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.29 ▼1.01 | 1.62 ▼0.37 | 42.00 ▼1.08 |
Dashboard /wp-admin | 2,213 ▲22 | 4.84 ▼1.07 | 95.93 ▼5.83 | 42.49 ▲0.45 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.02 | 41.59 ▼0.62 | 35.03 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.44 ▼5.85 | 728.64 ▲49.20 | 52.31 ▼4.55 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.22 ▲0.01 | 106.84 ▼3.84 | 46.56 ▲1.63 |
WP Media Assistant /wp-admin/upload.php?page=wpma_dashboard | 931 | 4.38 | 138.12 | 39.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpma_dashboard
- > Notice in wp-content/plugins/wp-media-assistant/inc/main-functions.php+70
Undefined variable: wpma_medias_url_list
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpma_dashboard
- > Warning in wp-content/plugins/wp-media-assistant/inc/main-functions.php+278
sizeof(): Parameter must be an array or an object that implements Countable
- 5 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpma_dashboard
- > Warning in wp-content/plugins/wp-media-assistant/inc/main-functions.php+274
Invalid argument supplied for foreach()
- 3 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=wpma_dashboard
- > Notice in wp-content/plugins/wp-media-assistant/inc/main-functions.php+90
Undefined variable: wpma_medias_size_list
- > GET request to /wp-admin/upload.php?page=wpma_dashboard
- > Warning in wp-content/plugins/wp-media-assistant/inc/options-page.php+50
array_sum() expects parameter 1 to be array, null given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 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/wp-media-assistant/inc/main-functions.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #2 (WPMA options page), #3 (WPMA options page)
wp-media-assistant/wp-media-assistant.php Passed 13 tests
The main PHP file in "WP Media Assistant" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Display useful informations about WordPress media library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin568 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 113 | 100 | 488 |
CSS | 1 | 8 | 0 | 37 |
Markdown | 2 | 11 | 0 | 34 |
JavaScript | 3 | 0 | 40 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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
6 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 26.76KB | 14.04KB | ▼ 47.53% |
assets/icon-256x256.png | 5.88KB | 3.83KB | ▼ 34.88% |
assets/screenshot-3.png | 44.23KB | 29.05KB | ▼ 34.32% |
assets/banner-772x250.png | 22.60KB | 9.06KB | ▼ 59.90% |
assets/banner-1544x500.png | 46.38KB | 19.21KB | ▼ 58.58% |