Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼43.43ms] Passed 4 tests
Analyzing server-side resources used by Google Maps Photo Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 14.04 ▼30.98 |
Dashboard /wp-admin | 2.82 ▼0.49 | 16.44 ▼32.83 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 18.08 ▼31.39 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 17.27 ▼78.51 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 18.04 ▼18.64 |
Google Maps Photo Gallery /wp-admin/options-general.php?page=googlemaps_photo_gallery | 2.82 | 18.66 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Google Maps Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲191 | 14.61 ▲0.23 | 32.27 ▲30.24 | 37.79 ▼9.71 |
Dashboard /wp-admin | 2,225 ▲37 | 4.86 ▼0.17 | 103.31 ▼13.48 | 43.48 ▼0.97 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.06 ▲0.04 | 41.41 ▲4.26 | 39.87 ▲4.78 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.30 ▲5.79 | 637.19 ▼50.77 | 50.43 ▼11.05 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.31 ▲0.13 | 109.49 ▲7.73 | 47.86 ▲2.51 |
Google Maps Photo Gallery /wp-admin/options-general.php?page=googlemaps_photo_gallery | 805 | 2.06 | 29.80 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/google-maps-photo-gallery/googlemaps-photo-gallery.php+43
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #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 entry point to "Google Maps Photo Gallery" version 1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous 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
No cyclomatic complexity issues were 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin