Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲580.72ms] 50% from 4 tests
Server-side resources used by Media Manager Plus
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 736.11ms on /wp-admin/index.php?page=mmp-support)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 580.72ms on /wp-admin/index.php?page=mmp-support)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.81 ▲0.74 |
Dashboard /wp-admin | 3.49 ▲0.19 | 955.20 ▲901.51 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 913.07 ▲849.63 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 669.93 ▲571.00 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 1,293.40 ▲1,255.20 |
Media Manager Plus /wp-admin/index.php?page=mmp-welcome | 3.38 | 717.66 |
Media Manager Plus /wp-admin/upload.php?page=uber-media | 3.66 | 9,592.96 |
Media Manager Plus /wp-admin/index.php?page=mmp-support | 3.38 | 736.11 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
mmp_version |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Media Manager Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲213 | 14.47 ▼0.29 | 2.15 ▲0.43 | 41.00 ▼2.83 |
Dashboard /wp-admin | 2,355 ▲178 | 6.16 ▲0.59 | 104.69 ▲13.04 | 38.83 ▼3.52 |
Posts /wp-admin/edit.php | 2,287 ▲184 | 3.44 ▲1.50 | 47.57 ▲10.94 | 34.99 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 22.01 ▼0.65 | 649.36 ▼14.48 | 37.61 ▼22.58 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.26 ▲0.09 | 86.66 ▼27.86 | 48.84 ▼0.72 |
Media Manager Plus /wp-admin/index.php?page=mmp-welcome | 984 | 3.07 | 41.60 | 33.09 |
Media Manager Plus /wp-admin/upload.php?page=uber-media | 1,185 | 3.37 | 44.21 | 28.74 |
Media Manager Plus /wp-admin/index.php?page=mmp-support | 1,064 | 3.07 | 42.82 | 39.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- mmp_version
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uber-media/includes/sources/instagram.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uber-media/includes/sources/500px.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/uber-media/includes/uber-media-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/uber-media/uber-media.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uber-media/includes/sources/dribbble.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uber-media/includes/sources/flickr.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/upload.php?page=uber-media
- > Network (severe)
chrome-error://chromewebdata/ - Failed to load resource: the server responded with a status of 400 ()
- > GET request to /wp-admin/upload.php?page=uber-media
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://www.instagram.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
uber-media/uber-media.php Passed 13 tests
This is the main PHP file of "Media Manager Plus" version 1.4.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Upgrade the WordPress Media Manager and add support for Flickr, Instagram, 500px etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,903 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 373 | 1,104 | 1,674 |
JavaScript | 1 | 186 | 15 | 967 |
CSS | 1 | 41 | 39 | 153 |
PO File | 1 | 41 | 43 | 109 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 10 | 6.29% |
▷ Public methods | 140 | 88.05% |
▷ Protected methods | 2 | 1.26% |
▷ Private methods | 17 | 10.69% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/500px.png | 7.60KB | 2.48KB | ▼ 67.36% |
assets/img/flickr.png | 6.01KB | 2.28KB | ▼ 62.05% |
assets/img/instagram.png | 43.59KB | 12.89KB | ▼ 70.44% |
assets/img/dribbble.png | 24.44KB | 11.02KB | ▼ 54.93% |