Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.03ms] Passed 4 tests
A check of server-side resources used by Media Sitemap for Google
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.87 ▼2.55 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.10 ▼5.38 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.04 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 80.07 ▼12.09 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.18 ▼0.08 |
Media Sitemap for Google /wp-admin/options-general.php?page=MediaSitemap | 3.32 | 32.16 |
Server storage [IO: ▲0.04MB] [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: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
msfg_mime_types |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Media Sitemap for Google
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.27 ▼0.08 | 1.66 ▼0.06 | 40.69 ▼8.24 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.03 | 87.58 ▼1.04 | 38.52 ▼6.35 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.97 ▼0.04 | 39.54 ▲4.60 | 35.01 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.06 ▼0.61 | 668.01 ▼4.64 | 50.95 ▼11.10 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.03 | 96.34 ▼1.14 | 42.09 ▼1.66 |
Media Sitemap for Google /wp-admin/options-general.php?page=MediaSitemap | 931 | 2.01 | 24.68 | 31.31 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-sitemap/lib/class-mediasitemapadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/media-sitemap/lib/class-mediasitemap.php:738
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-sitemap/lib/class-mediasitemapadmin.php:37
- > 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 96% 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
5 plugin tags: images, seo, sitemap, google, videos
media-sitemap/mediasitemap.php 92% from 13 tests
The main file in "Media Sitemap for Google" v. 2.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("media-sitemap.php" instead of "mediasitemap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin797 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 226 | 797 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 36.36% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected