Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.37ms] Passed 4 tests
An overview of server-side resources used by Snapycode Gmap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.74 ▼7.75 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.71 ▼15.22 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.41 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.65 ▼1.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.75 ▲1.28 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 705 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_snapycode_gmap |
Browser metrics Passed 4 tests
Checking browser requirements for Snapycode Gmap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.38 ▲0.03 | 1.60 ▼0.11 | 42.96 ▼2.41 |
Dashboard /wp-admin | 2,192 ▲15 | 5.67 ▲0.09 | 90.31 ▲1.27 | 38.95 ▼5.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.08 ▲0.07 | 38.81 ▲2.02 | 32.89 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.34 ▼0.26 | 689.11 ▲51.50 | 50.99 ▼1.26 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▲0.06 | 98.91 ▼9.84 | 40.38 ▼5.40 |
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: 7 options
- can_compress_scripts
- widget_snapycode_gmap
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/snapycode-gmap/map.php
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snapycode-gmap/map.php on line 125
- > PHP Notice
Undefined variable: instance in wp-content/plugins/snapycode-gmap/map.php on line 30
- > PHP Notice
Undefined variable: instance in wp-content/plugins/snapycode-gmap/map.php on line 125
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snapycode-gmap/map.php on line 132
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snapycode-gmap/map.php on line 37
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snapycode-gmap/map.php on line 30
- > PHP Notice
Undefined variable: instance in wp-content/plugins/snapycode-gmap/map.php on line 133
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snapycode-gmap/map.php on line 37
- > PHP Notice
Undefined variable: instance in wp-content/plugins/snapycode-gmap/map.php on line 132
- > PHP Notice
Undefined variable: instance in wp-content/plugins/snapycode-gmap/map.php on line 31
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
- Screenshots: Screenshot #1 (Google map for wordpress by snapycode.) image not found
snapycode-gmap/snapycode_gmap.php 92% from 13 tests
The entry point to "Snapycode Gmap" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("snapycode-gmap.php" instead of "snapycode_gmap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin340 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 86 | 46 | 294 |
CSS | 1 | 2 | 0 | 45 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 7.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
698 PNG files occupy 0.88MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/map-markers/mushroom.png | 1.33KB | 0.94KB | ▼ 28.97% |
images/map-markers/weights.png | 1.08KB | 0.71KB | ▼ 34.30% |
images/map-markers/poweroutage.png | 1.04KB | 0.63KB | ▼ 39.33% |
images/map-markers/amphitheater-2.png | 1.23KB | 0.67KB | ▼ 45.49% |
images/map-markers/ufo.png | 1.19KB | 0.78KB | ▼ 34.48% |