10% giuliani-simple-map

Code Review | GS Simple Map

WordPress plugin GS Simple Map scored 10% from 54 tests.

About plugin

  • Plugin page: giuliani-simple-map
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 5.9.2
  • First release: May 26, 2020
  • Latest release: May 28, 2020
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: giuliani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 222 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.00 ▼1.555.96 ▼46.26
Dashboard /wp-admin2.02 ▼1.426.51 ▼32.37
Posts /wp-admin/edit.php2.02 ▼1.654.98 ▼33.82
Add New Post /wp-admin/post-new.php2.02 ▼4.986.57 ▼1,278.69
Media Library /wp-admin/upload.php2.02 ▼1.315.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,930 ▲17617.37 ▲1.3418.09 ▲12.162.58 ▲0.01
Dashboard /wp-admin2,910 ▲496.19 ▲0.12114.66 ▼21.89156.08 ▼8.08
Posts /wp-admin/edit.php2,709 ▲243.23 ▼0.0164.87 ▼1.93143.70 ▲2.99
Add New Post /wp-admin/post-new.php1,772 ▲8521.42 ▲4.79456.67 ▲56.92156.04 ▼5.72
Media Library /wp-admin/upload.php1,717 ▲195.52 ▲0.02137.94 ▼9.81192.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP151252481,095
CSS216394
JavaScript212036
XML10011
Markdown1104

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 code0.26
Average class complexity5.12
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods2982.86%
▷ Protected methods00.00%
▷ Private methods617.14%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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