Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/simple-google-map-by-naf/includes/class-nafs-gmap.php+94
Undefined variable: options
Server metrics [RAM: ▼1.85MB] [CPU: ▼49.47ms] Passed 4 tests
Analyzing server-side resources used by Wordpress Google Map Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 6.96 ▼35.27 |
Dashboard /wp-admin | 2.15 ▼1.15 | 13.09 ▼37.24 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 9.37 ▼38.00 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 7.91 ▼87.37 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 9.85 ▼25.34 |
Gmap Settings /wp-admin/options-general.php?page=nafs-gmap-admin | 2.15 | 8.65 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Google Map Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲169 | 14.02 ▼0.37 | 4.95 ▲3.09 | 39.45 ▼12.09 |
Dashboard /wp-admin | 2,224 ▲36 | 5.83 ▲0.97 | 110.96 ▲2.90 | 41.72 ▼5.57 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.10 ▲0.08 | 36.70 ▲1.43 | 37.12 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,582 ▲49 | 19.66 ▼3.39 | 599.32 ▼56.15 | 48.31 ▼11.45 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.25 ▲0.05 | 98.14 ▲1.65 | 42.40 ▲0.64 |
Gmap Settings /wp-admin/options-general.php?page=nafs-gmap-admin | 816 | 2.05 | 27.89 | 27.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/simple-google-map-by-naf/includes/class-nafs-gmap.php+94
Undefined variable: options
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=nafs-gmap-admin
- > Notice in wp-content/plugins/simple-google-map-by-naf/includes/class-nafs-gmap.php+94
Undefined variable: options
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-google-map-by-naf/admin/partials/nafs-gmap-admin-display.php
- > /wp-content/plugins/simple-google-map-by-naf/public/partials/nafs-gmap-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-google-map-by-naf/tinymce-custom-class-master/tinymce-custom-class.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-google-map-by-naf/includes/class-nafs-gmap.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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:
- Donate link: Please fix this invalid URI: ""
simple-google-map-by-naf/nafs-gmap.php 85% from 13 tests
The entry point to "Wordpress Google Map Plugin" version 2.2.1 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: It is recommended to name the main PHP file as the plugin slug ("simple-google-map-by-naf.php" instead of "nafs-gmap.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin972 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 195 | 631 | 776 |
CSS | 3 | 10 | 8 | 114 |
JavaScript | 3 | 11 | 68 | 80 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
11 PNG files occupy 0.28MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 17.24KB | 7.60KB | ▼ 55.89% |
assets/insert-custom.png | 7.87KB | 4.21KB | ▼ 46.49% |
tinymce-custom-class-master/icon.png | 0.39KB | 0.32KB | ▼ 17.75% |
assets/insert-pre-built.png | 7.50KB | 4.78KB | ▼ 36.30% |
assets/red.png | 5.68KB | 2.98KB | ▼ 47.45% |