Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.16MB] [CPU: ▼325.03ms] Passed 4 tests
A check of server-side resources used by Advanced Image Sitemap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 61.48 ▲4.03 |
Dashboard /wp-admin | 3.17 ▼0.24 | 23.35 ▼13.06 |
Posts /wp-admin/edit.php | 3.17 ▼0.47 | 19.85 ▼21.72 |
Add New Post /wp-admin/post-new.php | 3.17 ▼3.80 | 18.98 ▼1,257.34 |
Media Library /wp-admin/upload.php | 3.17 ▼0.13 | 18.76 ▼8.01 |
AIS /wp-admin/options-general.php?page=ais | 3.17 | 23.85 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ais_options |
Browser metrics Passed 4 tests
Advanced Image Sitemap: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲46 | 16.13 ▲0.46 | 6.18 ▲0.48 | 2.49 ▲0.18 |
Dashboard /wp-admin | 2,897 ▲39 | 6.14 ▲0.01 | 117.54 ▼16.51 | 157.69 ▼10.69 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.24 ▲0.01 | 62.05 ▼2.47 | 139.89 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,671 ▼48 | 18.82 ▲1.28 | 403.50 ▼23.38 | 155.43 ▲3.80 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.54 ▲0.01 | 140.28 ▼0.26 | 190.42 ▼3.82 |
AIS /wp-admin/options-general.php?page=ais | 1,344 | 2.40 | 54.19 | 124.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5600
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ais
- > User deprecated in wp-includes/functions.php+5600
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=ais
- > Notice in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+280
Undefined index: date
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ais
- > Notice in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+432
Undefined index: tags
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ais
- > Notice in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+477
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ais
- > Notice in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+439
Undefined index: ctags
- > GET request to /wp-admin/options-general.php?page=ais
- > Warning in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+439
implode(): Invalid arguments passed
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ais
- > Notice in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+458
Undefined index: sizes
- > GET request to /wp-admin/options-general.php?page=ais
- > Notice in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php+477
Undefined index: exclude
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-image-sitemap/advanced-image-sitemap.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: image sitemap, custom, seo, sitemap
advanced-image-sitemap/advanced-image-sitemap.php Passed 13 tests
The main PHP script in "Advanced Image Sitemap" version 1.2 is automatically included on every request by WordPress
128 characters long description:
Most advanced plugin for Image Sitemap generator up-to-date. Boost your website indexation in Google (and other) Search Engines.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected929 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 410 | 1,933 | 929 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 126.00 |
▷ Minimum class complexity | 126.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 6.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 70.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 29.17% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/donate.png | 12.84KB | 4.25KB | ▼ 66.86% |
images/remove.png | 1.09KB | 0.84KB | ▼ 23.15% |