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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.45MB] [CPU: ▼328.69ms] Passed 4 tests
Server-side resources used by Google Maps Photo Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▼0.52 | 18.87 ▼28.09 |
Dashboard /wp-admin | 2.94 ▼0.50 | 14.32 ▼19.24 |
Posts /wp-admin/edit.php | 2.94 ▼0.73 | 13.64 ▼25.01 |
Add New Post /wp-admin/post-new.php | 2.94 ▼4.06 | 14.20 ▼1,242.40 |
Media Library /wp-admin/upload.php | 2.94 ▼0.38 | 14.90 ▼10.17 |
Google Maps Photo Gallery /wp-admin/options-general.php?page=googlemaps_photo_gallery | 2.95 | 14.87 |
Server storage [IO: ▲1.72MB] [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: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Maps Photo Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,948 ▲194 | 17.48 ▲1.83 | 21.19 ▲14.41 | 2.65 ▲0.16 |
Dashboard /wp-admin | 2,916 ▲58 | 6.15 ▼0.12 | 120.74 ▼19.50 | 156.75 ▼5.46 |
Posts /wp-admin/edit.php | 2,679 ▼9 | 3.24 ▲0.00 | 63.76 ▲2.17 | 133.38 ▼12.00 |
Add New Post /wp-admin/post-new.php | 1,678 ▼20 | 16.02 ▼6.31 | 417.20 ▼15.05 | 156.10 ▼4.77 |
Media Library /wp-admin/upload.php | 1,725 ▲27 | 5.53 ▼0.03 | 142.16 ▼11.26 | 183.99 ▼2.96 |
Google Maps Photo Gallery /wp-admin/options-general.php?page=googlemaps_photo_gallery | 1,031 | 2.38 | 55.84 | 112.74 |
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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/google-maps-photo-gallery/googlemaps-photo-gallery.php+43
Trying to access array offset on value of type bool
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=googlemaps_photo_gallery
- > Notice in wp-content/plugins/google-maps-photo-gallery/googlemaps-photo-gallery.php+43
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Display photo gallery on Google Maps), #2 (Zoom in image with lightbox)
google-maps-photo-gallery/googlemaps-photo-gallery.php 85% from 13 tests
The primary PHP file in "Google Maps Photo Gallery" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("google-maps-photo-gallery.php" instead of "googlemaps-photo-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin22,401 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 3,100 | 1,357 | 20,788 |
CSS | 5 | 118 | 52 | 1,244 |
PHP | 1 | 79 | 57 | 239 |
Markdown | 2 | 49 | 0 | 85 |
PO File | 1 | 16 | 18 | 45 |
PHP code Passed 2 tests
A short review of 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.22 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin