Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/giuliani-simple-map/public/class-gswpgmap-page-public.php+22
addslashes() expects parameter 1 to be string, array given
Server metrics [RAM: ▼2.40MB] [CPU: ▼347.79ms] Passed 4 tests
This is a short check of server-side resources used by GS Simple Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.00 ▼1.55 | 5.96 ▼46.26 |
Dashboard /wp-admin | 2.02 ▼1.42 | 6.51 ▼32.37 |
Posts /wp-admin/edit.php | 2.02 ▼1.65 | 4.98 ▼33.82 |
Add New Post /wp-admin/post-new.php | 2.02 ▼4.98 | 6.57 ▼1,278.69 |
Media Library /wp-admin/upload.php | 2.02 ▼1.31 | 5.76 ▼21.01 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by GS Simple Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,930 ▲176 | 17.37 ▲1.34 | 18.09 ▲12.16 | 2.58 ▲0.01 |
Dashboard /wp-admin | 2,910 ▲49 | 6.19 ▲0.12 | 114.66 ▼21.89 | 156.08 ▼8.08 |
Posts /wp-admin/edit.php | 2,709 ▲24 | 3.23 ▼0.01 | 64.87 ▼1.93 | 143.70 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,772 ▲85 | 21.42 ▲4.79 | 456.67 ▲56.92 | 156.04 ▼5.72 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.52 ▲0.02 | 137.94 ▼9.81 | 192.37 ▼1.57 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/giuliani-simple-map/public/class-gswpgmap-page-public.php+22
addslashes() expects parameter 1 to be string, array given
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/giuliani-simple-map/public/partials/gswpgmap-page-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/giuliani-simple-map/admin/partials/gswpgmap-page-admin-settings-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
1 plugin tags: map
giuliani-simple-map/gswpgmap-page.php 85% from 13 tests
This is the main PHP file of "GS Simple Map" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("giuliani-simple-map.php" instead of "gswpgmap-page.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,240 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 125 | 248 | 1,095 |
CSS | 2 | 16 | 3 | 94 |
JavaScript | 2 | 12 | 0 | 36 |
XML | 1 | 0 | 0 | 11 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin