78% arastoo-gmap-extended

Code Review | Arastoo GMap Extended

WordPress plugin Arastoo GMap Extended scored78%from 54 tests.

About plugin

  • Plugin page: arastoo-gmap-exte...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 5, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: lucenadigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.30ms] Passed 4 tests

Analyzing server-side resources used by Arastoo GMap Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0445.45 ▲1.85
Dashboard /wp-admin3.33 ▲0.0350.64 ▼1.79
Posts /wp-admin/edit.php3.38 ▲0.0249.07 ▼1.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.98 ▲2.22
Media Library /wp-admin/upload.php3.25 ▲0.0239.73 ▲2.64
Arastoo GMap /wp-admin/options-general.php?page=gmap-markers3.2236.32

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Arastoo GMap Extended: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3913.86 ▼0.6713.57 ▲11.6243.68 ▲0.45
Dashboard /wp-admin2,202 ▲315.59 ▼0.0888.90 ▼12.1541.47 ▲2.30
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0535.57 ▼4.9436.20 ▼1.44
Add New Post /wp-admin/post-new.php1,530 ▲423.02 ▲0.06612.67 ▼78.6256.54 ▼6.18
Media Library /wp-admin/upload.php1,407 ▲104.18 ▼0.03103.86 ▼7.8646.39 ▼1.32
Arastoo GMap /wp-admin/options-general.php?page=gmap-markers8852.1321.4829.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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/arastoo-gmap-extended/parts/gmap-marker-style.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arastoo-gmap-extended/arastoo-gmap-extend.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/arastoo-gmap-extended/parts/gmap-marker.php:7

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: google map, gmap, markers, multiple markers

arastoo-gmap-extended/arastoo-gmap-extend.php 92% from 13 tests

The main PHP file in "Arastoo GMap Extended" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("arastoo-gmap-extended.php" instead of "arastoo-gmap-extend.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin156 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52753156

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
arastoo-gmap-options-settings.png72.74KB29.90KB▼ 58.89%
parts/default-map-logo-marker-xsmall.png1.64KB0.71KB▼ 57.05%