Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▼2.04ms] Passed 4 tests
A check of server-side resources used by WP Media Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 39.54 ▼0.98 |
Dashboard /wp-admin | 3.74 ▲0.44 | 53.02 ▲6.17 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 52.99 ▲5.53 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 86.53 ▼18.15 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 41.05 ▲5.46 |
Media Tags /wp-admin/edit-tags.php?taxonomy=wpmp-media-tag&post_type=attachment | 3.61 | 41.74 |
WP Media Pro /wp-admin/options-general.php?page=wp-media-pro | 3.59 | 40.35 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP Media Pro: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,095 ▲360 | 24.46 ▲10.08 | 1.88 ▲0.06 | 39.49 ▼7.51 |
Dashboard /wp-admin | 2,480 ▲300 | 12.98 ▲8.03 | 340.08 ▲231.18 | 48.86 ▲6.51 |
Posts /wp-admin/edit.php | 2,423 ▲334 | 12.47 ▲10.41 | 127.60 ▲88.22 | 38.91 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,700 ▲186 | 23.45 ▲5.68 | 448.30 ▼141.66 | 26.09 ▼44.64 |
Media Library /wp-admin/upload.php | 1,584 ▲196 | 14.27 ▲10.08 | 153.98 ▲50.65 | 43.15 ▼1.36 |
Media Tags /wp-admin/edit-tags.php?taxonomy=wpmp-media-tag&post_type=attachment | 1,569 | 12.37 | 119.37 | 31.72 |
WP Media Pro /wp-admin/options-general.php?page=wp-media-pro | 1,212 | 12.19 | 107.48 | 25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPMP\\Module' not found in wp-content/plugins/wp-media-pro/inc/classes/Modules/SingleView/SingleView.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPMP\\Module' not found in wp-content/plugins/wp-media-pro/inc/classes/Modules/Credits/Credits.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPMP\\Module' not found in wp-content/plugins/wp-media-pro/inc/classes/Modules/Taxonomies/Taxonomies.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPMP\\Module' not found in wp-content/plugins/wp-media-pro/inc/classes/Modules/Folders/Folders.php:18
- > PHP Fatal error
Uncaught Error: Class 'WPMP\\Module' not found in wp-content/plugins/wp-media-pro/inc/classes/Modules/Edit/Edit.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: image folders, media organization, image tags, images, media categories...
wp-media-pro/plugin.php 77% from 13 tests
This is the main PHP file of "WP Media Pro" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-media-pro.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin17,074 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 13,966 |
JavaScript | 23 | 279 | 196 | 1,474 |
PHP | 10 | 304 | 320 | 1,255 |
CSS | 15 | 66 | 0 | 338 |
SVG | 8 | 0 | 2 | 25 |
Markdown | 1 | 7 | 0 | 11 |
XML | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/img-icon.png | 0.91KB | 0.90KB | 0.22% |
assets/img/img-icon.png | 2.72KB | 0.90KB | ▼ 66.74% |