Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/simple-google-map-generator/lib/functions.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; AllGoogleMaps has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼55.87ms] Passed 4 tests
An overview of server-side resources used by Simple Google Map Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.42 | 9.17 ▼32.36 |
Dashboard /wp-admin | 2.07 ▼1.24 | 6.11 ▼47.21 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.58 ▼44.33 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 8.16 ▼99.56 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.99 ▼30.44 |
Google Maps /wp-admin/options-general.php?page=rtltheme-gmap | 2.07 | 7.05 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Google Map Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲163 | 14.35 ▲0.00 | 35.04 ▲33.49 | 48.67 ▲7.09 |
Dashboard /wp-admin | 2,202 ▲31 | 5.56 ▲0.03 | 85.09 ▼3.37 | 38.97 ▼4.82 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▲0.03 | 35.14 ▼1.23 | 38.65 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.35 ▲0.24 | 673.89 ▲30.82 | 54.84 ▲7.08 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.26 ▲0.04 | 99.94 ▲4.06 | 43.09 ▼1.28 |
Google Maps /wp-admin/options-general.php?page=rtltheme-gmap | 1,665 | 6.36 | 134.20 | 136.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/simple-google-map-generator/lib/functions.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; AllGoogleMaps has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% 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=rtltheme-gmap
- > Deprecated in wp-content/plugins/simple-google-map-generator/lib/functions.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; AllGoogleMaps has a deprecated constructor
SRP 50% from 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
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/simple-google-map-generator/rtltheme-gmap.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-map-generator/lib/functions.php:101
- > PHP Fatal error
require_once(): Failed opening required 'RT_PLUGIN_DIR/lib/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-google-map-generator/settings.php on line 2
- > PHP Warning
require_once(RT_PLUGIN_DIR/lib/functions.php): failed to open stream: No such file or directory in wp-content/plugins/simple-google-map-generator/settings.php on line 2
- > PHP Warning
Use of undefined constant RT_PLUGIN_DIR - assumed 'RT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-google-map-generator/settings.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=rtltheme-gmap
- > Console-api (warning) in unknown
http://maps.google.com/maps/api/js?sensor=true 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: simple, persian, google map, google, drag and drop...
simple-google-map-generator/rtltheme-gmap.php 85% from 13 tests
The entry point to "Simple Google Map Generator" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-google-map-generator.php" instead of "rtltheme-gmap.php")
- 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
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
No dangerous file extensions were detected514 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 86 | 30 | 278 |
PO File | 2 | 42 | 42 | 125 |
CSS | 2 | 3 | 0 | 110 |
JavaScript | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-shadow.png | 1.44KB | 2.04KB | 0.00% |
screenshot.png | 163.98KB | 65.46KB | ▼ 60.08% |
img/rtltheme.png | 3.75KB | 1.79KB | ▼ 52.34% |
img/default.png | 2.90KB | 1.77KB | ▼ 39.00% |