77% custom-map-coord

Code Review | Custom Map Coordinates

WordPress plugin Custom Map Coordinates scored 77% from 54 tests.

About plugin

  • Plugin page: custom-map-coord
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 25, 2023
  • Latest release: Mar 11, 2023
  • Number of updates: 8
  • Update frequency: every 2.1 days
  • Top authors: shahmanish877 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Custom Map Coordinates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.13 ▼7.72
Dashboard /wp-admin3.33 ▲0.0354.46 ▼5.10
Posts /wp-admin/edit.php3.37 ▲0.0253.65 ▼3.67
Add New Post /wp-admin/post-new.php5.92 ▲0.03103.03 ▲0.82
Media Library /wp-admin/upload.php3.26 ▲0.0340.76 ▲2.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Map Coordinates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲10219.45 ▲6.201.89 ▲0.0040.15 ▼3.01
Dashboard /wp-admin2,288 ▲829.86 ▲5.02263.28 ▲149.8042.13 ▼2.65
Posts /wp-admin/edit.php2,209 ▲1209.27 ▲7.2895.16 ▲55.8336.14 ▲1.01
Add New Post /wp-admin/post-new.php1,493 ▼4920.43 ▲2.03749.17 ▲96.6237.11 ▼15.77
Media Library /wp-admin/upload.php1,493 ▲10512.02 ▲7.81138.59 ▲36.8541.35 ▼0.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/custom-map-coord/public/partials/custom-map-lat-lon-public-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-map-coord/admin/partials/custom-map-lat-lon-admin-menu.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/custom-map-coord/admin/elementor-addon/widgets/map-coord-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-map-coord/public/partials/shortcodes.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

custom-map-coord/custom-map-lat-lon.php 77% from 13 tests

The entry point to "Custom Map Coordinates" version 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: It is recommended to name the main PHP file as the plugin slug ("custom-map-coord.php" instead of "custom-map-lat-lon.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 287 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin412 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14147438346
JavaScript13066

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.12
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2275.86%
▷ Protected methods26.90%
▷ Private methods517.24%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin