Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲2.49MB] [CPU: ▲13.69ms] Passed 4 tests
An overview of server-side resources used by MediaPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.75 ▲2.29 | 61.06 ▲13.62 |
Dashboard /wp-admin | 5.86 ▲2.55 | 67.43 ▲10.10 |
Posts /wp-admin/edit.php | 5.95 ▲2.59 | 77.27 ▲24.93 |
Add New Post /wp-admin/post-new.php | 8.47 ▲2.59 | 106.79 ▲8.25 |
Media Library /wp-admin/upload.php | 5.78 ▲2.55 | 62.01 ▲22.80 |
All Galleries /wp-admin/edit.php?post_type=mpp-gallery | 5.86 | 58.37 |
Settings /wp-admin/edit.php?post_type=mpp-gallery&page=mpp-settings | 6.00 | 57.63 |
Tools /wp-admin/edit.php?post_type=mpp-gallery&page=mpp-tools | 6.13 | 55.66 |
Server storage [IO: ▲1.42MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 298 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_mpp_logs |
New WordPress options |
---|
widget_mpp_gallery_list_widget |
widget_theysaidso_widget |
mpp-settings |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_mpp_media_list_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MediaPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,115 ▲354 | 14.74 ▲0.35 | 28.69 ▲26.89 | 41.04 ▼6.70 |
Dashboard /wp-admin | 2,264 ▲93 | 5.58 ▼0.05 | 83.16 ▼6.19 | 87.62 ▲42.20 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.02 ▲0.00 | 36.12 ▼4.27 | 38.39 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,738 ▲193 | 22.29 ▼0.92 | 689.06 ▲0.08 | 57.09 ▼6.70 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.17 ▼0.12 | 115.28 ▼0.70 | 51.73 ▲3.30 |
All Galleries /wp-admin/edit.php?post_type=mpp-gallery | 1,357 | 3.09 | 61.66 | 34.42 |
Settings /wp-admin/edit.php?post_type=mpp-gallery&page=mpp-settings | 1,893 | 3.13 | 58.48 | 36.33 |
Tools /wp-admin/edit.php?post_type=mpp-gallery&page=mpp-tools | 924 | 2.95 | 65.73 | 36.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_mpp_logs
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- mpp-settings
- widget_theysaidso_widget
- widget_mpp_gallery_list_widget
- can_compress_scripts
- widget_mpp_media_list_widget
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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mpp-gallery&page=mpp-tools
- > Notice in wp-content/plugins/mediapress/admin/tools/debug/mpp-debug-output.php+148
Array to string conversion
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 take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_get_current_media() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/doc.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_get_current_media() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/video.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mediapress/core/common/mpp-cron.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_get_current_gallery() in wp-content/plugins/mediapress/templates/mediapress/default/sitewide/home.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mediapress/admin/tools/class-mpp-media-debugger.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_get_current_media() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/doc.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_get_current_media() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/audio.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_media_permalink() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/photo.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_media_id() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/media-edit-form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function mpp_get_current_media() in wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/oembed.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #10 in mediapress/assets to your readme.txt
mediapress/mediapress.php Passed 13 tests
The main PHP script in "MediaPress" version 1.5.7 is automatically included on every request by WordPress
123 characters long description:
MediaPress is the most powerful media plugin for BuddyPress . It allows uploading images(photos), videos, audios, documents
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected26,787 lines of code in 251 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 236 | 7,789 | 12,935 | 20,991 |
CSS | 4 | 333 | 270 | 2,244 |
JavaScript | 7 | 641 | 520 | 2,028 |
PO File | 1 | 550 | 769 | 1,467 |
Markdown | 3 | 18 | 0 | 57 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 4 | 5.26% |
▷ Concrete classes | 72 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 644 | |
▷ Static methods | 36 | 5.59% |
▷ Public methods | 508 | 78.88% |
▷ Protected methods | 50 | 7.76% |
▷ Private methods | 86 | 13.35% |
Functions | 709 | |
▷ Named functions | 708 | 99.86% |
▷ Anonymous functions | 1 | 0.14% |
Constants | 57 | |
▷ Global constants | 1 | 1.75% |
▷ Class constants | 56 | 98.25% |
▷ Public constants | 56 | 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
12 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/mediapress/default/assets/images/photo-thumbnail.png | 6.12KB | 5.96KB | ▼ 2.62% |
templates/mediapress/default/assets/images/video-thumbnail.png | 5.25KB | 5.05KB | ▼ 3.94% |
templates/mediapress/default/assets/images/media-button-doc.png | 0.40KB | 0.40KB | 0.00% |
assets/images/delete.png | 0.79KB | 0.97KB | 0.00% |
templates/mediapress/default/assets/images/media-button-video.png | 0.35KB | 0.36KB | 0.00% |