Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/demomentsomtres-media-tools-auto/freemius/includes/managers/class-fs-admin-menu-manager.php+123
Undefined index: slug
Server metrics [RAM: ▼2.23MB] [CPU: ▼344.70ms] Passed 4 tests
Analyzing server-side resources used by DeMomentSomTres Media Tools Auto
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.38 | 4.44 ▼47.28 |
Dashboard /wp-admin | 2.15 ▼1.25 | 4.68 ▼29.05 |
Posts /wp-admin/edit.php | 2.15 ▼1.49 | 3.99 ▼39.42 |
Add New Post /wp-admin/post-new.php | 2.15 ▼4.82 | 4.96 ▼1,263.06 |
Media Library /wp-admin/upload.php | 2.15 ▼1.14 | 3.81 ▼21.11 |
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius | 2.15 | 4.49 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 2.16 | 4.13 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 116 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_api_cache |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
DeMomentSomTres Media Tools Auto: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,856 ▲102 | 15.89 ▼0.08 | 5.83 ▼0.05 | 2.25 ▼0.21 |
Dashboard /wp-admin | 2,985 ▲124 | 6.17 ▼0.02 | 116.43 ▼16.91 | 189.79 ▲24.74 |
Posts /wp-admin/edit.php | 2,795 ▲104 | 3.39 ▲0.03 | 65.94 ▲0.81 | 175.94 ▲31.25 |
Add New Post /wp-admin/post-new.php | 1,735 ▼17 | 18.50 ▼3.05 | 375.24 ▼88.20 | 159.38 ▼3.86 |
Media Library /wp-admin/upload.php | 1,797 ▲99 | 5.60 ▲0.06 | 142.10 ▼10.77 | 216.83 ▲26.27 |
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius | 28 | 0.94 | 0.08 | 17.25 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,240 | 2.43 | 54.36 | 124.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/demomentsomtres-media-tools-auto/freemius/includes/managers/class-fs-admin-menu-manager.php+123
Undefined index: slug
- Zombie WordPress options were found after uninstall: 4 options
- fs_accounts
- fs_active_plugins
- fs_api_cache
- fs_debug_mode
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=tgmpa-install-plugins
- > Notice in wp-content/plugins/demomentsomtres-media-tools-auto/freemius/includes/managers/class-fs-admin-menu-manager.php+123
Undefined index: slug
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-media-tools-auto/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=freemius
- > Network (severe)
wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: images, post thumbnails, media, featured images, media library
demomentsomtres-media-tools-auto/dms3-media-tools-auto.php 92% from 13 tests
The primary PHP file in "DeMomentSomTres Media Tools Auto" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("demomentsomtres-media-tools-auto.php" instead of "dms3-media-tools-auto.php")
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
Everything looks great! No dangerous files found in this plugin17,766 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 3,420 | 8,255 | 13,962 |
PO File | 2 | 650 | 659 | 1,608 |
Sass | 15 | 248 | 80 | 1,558 |
Markdown | 2 | 109 | 0 | 334 |
JavaScript | 4 | 37 | 63 | 229 |
JSON | 2 | 0 | 0 | 42 |
YAML | 2 | 2 | 0 | 22 |
CSS | 9 | 0 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 42.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 946.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 2 | 5.00% |
▷ Concrete classes | 38 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 668 | |
▷ Static methods | 87 | 13.02% |
▷ Public methods | 496 | 74.25% |
▷ Protected methods | 18 | 2.69% |
▷ Private methods | 154 | 23.05% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 93 | |
▷ Global constants | 76 | 81.72% |
▷ Class constants | 17 | 18.28% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |