Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.64ms] Passed 4 tests
An overview of server-side resources used by Media Modal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.09 ▼4.12 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.15 ▼3.41 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 49.88 ▼6.46 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.78 ▼12.56 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.90 ▲2.30 |
Media Modal /wp-admin/options-general.php?page=mediamodal-options | 3.24 | 33.77 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Media Modal
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.46 ▼0.89 | 9.43 ▲7.73 | 40.07 ▼3.54 |
Dashboard /wp-admin | 2,200 ▲20 | 5.65 ▲0.02 | 89.77 ▼1.07 | 40.99 ▼4.20 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 1.99 ▼0.04 | 36.51 ▼2.47 | 36.04 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.67 ▲0.51 | 665.14 ▼12.34 | 52.56 ▼13.61 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.18 ▼0.02 | 97.41 ▼21.16 | 41.56 ▼7.35 |
Media Modal /wp-admin/options-general.php?page=mediamodal-options | 1,137 | 1.99 | 25.28 | 37.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mediamodal-options
- > Notice in wp-content/plugins/media-modal/lib/mm-admin-page.php+50
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× 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/media-modal/lib/mm-ajax.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-modal/lib/mm-admin-page.php:163
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-modal/lib/mm-scripts.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/media-modal/media-modal.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/media-modal/lib/mm-functions.php:64
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=mediamodal-options
- > Network (severe)
wp-content/plugins/media-modal/lib/js/mm_admin_scripts.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Modal buttons.), #2 (Modal in white for video), #3 (Modal with no padding and custom background and text color for video), #4 (Embed Audio file and modal buttons), #5 (Modal in white for audio), #6 (Modal with no padding and custom background and text color for audio), #7 (Global Settings)
- Tags: You are using too many tags: 12 tag instead of maximum 10
media-modal/media-modal.php Passed 13 tests
This is the main PHP file of "Media Modal" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
Provides multiple options for different media that you want to show on a modal.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected822 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 132 | 46 | 419 |
CSS | 2 | 30 | 3 | 286 |
JavaScript | 1 | 31 | 2 | 117 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.26MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 289.34KB | 86.99KB | ▼ 69.94% |
screenshot-1.png | 119.76KB | 32.85KB | ▼ 72.57% |
lib/img/Jumpstart-Logo.png | 13.49KB | 5.25KB | ▼ 61.08% |
screenshot-6.png | 126.18KB | 34.88KB | ▼ 72.36% |
screenshot-7.png | 198.64KB | 52.42KB | ▼ 73.61% |