74% very-simple-wp-maker-map

Code Review | Very Simple WP MakerMap

WordPress plugin Very Simple WP MakerMap scored74%from 54 tests.

About plugin

  • Plugin page: very-simple-wp-ma...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Jan 2, 2021
  • Number of updates: 9
  • Update frequency: every 52.6 days
  • Top authors: jschaves (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.79MB] [CPU: ▼50.56ms] Passed 4 tests

Analyzing server-side resources used by Very Simple WP MakerMap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.274.96 ▼33.49
Dashboard /wp-admin2.22 ▼1.096.32 ▼43.44
Posts /wp-admin/edit.php2.22 ▼1.147.40 ▼39.04
Add New Post /wp-admin/post-new.php2.22 ▼3.678.02 ▼86.26
Media Library /wp-admin/upload.php2.22 ▼1.017.31 ▼24.54
VSWP Maker Map /wp-admin/options-general.php?page=very-simple-wp-maker-map-settings2.226.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Very Simple WP MakerMap
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17415.57 ▲0.7817.19 ▲15.3837.71 ▼3.64
Dashboard /wp-admin2,230 ▲396.27 ▲0.39118.48 ▲14.8841.97 ▼2.16
Posts /wp-admin/edit.php2,110 ▲212.92 ▲0.8851.39 ▲16.0335.33 ▼0.17
Add New Post /wp-admin/post-new.php1,687 ▲15423.10 ▲0.08629.60 ▼9.4135.99 ▼16.06
Media Library /wp-admin/upload.php1,412 ▲275.41 ▲1.22109.10 ▲9.6240.91 ▼2.61
VSWP Maker Map /wp-admin/options-general.php?page=very-simple-wp-maker-map-settings9682.6338.9029.71

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vswpmm_ajax_map handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=very-simple-wp-maker-map-settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vswpmm_ajax_map handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=very-simple-wp-maker-map-settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=very-simple-wp-maker-map-settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vswpmm_ajax_map handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=very-simple-wp-maker-map-settings
    • > Notice in wp-content/plugins/very-simple-wp-maker-map/shared/vswpmm-class-deserializer.php+30
    Undefined variable: ouput

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: openlayers, marker, map

very-simple-wp-maker-map/very-simple-wp-maker-map.php Passed 13 tests

The principal PHP file in "Very Simple WP MakerMap" v. 1.1 is loaded by WordPress automatically on each request
70 characters long description:
Create map in the selected direction with a marker with text and link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin756 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1014240460
JavaScript2013161
CSS341101
PO File19934

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin