79% clicksports-maps

Code Review | CLICKSPORTS Maps

WordPress plugin CLICKSPORTS Maps scored79%from 54 tests.

About plugin

  • Plugin page: clicksports-maps
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Jan 16, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 71
  • Update frequency: every 24.8 days
  • Top authors: clicksports (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼8.71ms] Passed 4 tests

A check of server-side resources used by CLICKSPORTS Maps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2043.41 ▲1.37
Dashboard /wp-admin3.51 ▲0.1747.30 ▼24.65
Posts /wp-admin/edit.php3.63 ▲0.2747.76 ▼1.30
Add New Post /wp-admin/post-new.php6.11 ▲0.2296.45 ▼10.25
Media Library /wp-admin/upload.php3.44 ▲0.2038.02 ▲4.35
CLICKSPORTS Maps /wp-admin/options-general.php?page=clicksports-maps3.40293.80

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CLICKSPORTS Maps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.67 ▲0.391.65 ▼0.2038.45 ▼3.99
Dashboard /wp-admin2,202 ▲215.63 ▼0.0394.80 ▼5.6139.97 ▼3.17
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0239.80 ▼0.0735.53 ▲2.70
Add New Post /wp-admin/post-new.php1,529 ▼823.29 ▼1.82695.07 ▲40.0163.84 ▲3.29
Media Library /wp-admin/upload.php1,404 ▲104.18 ▼0.0297.91 ▼4.1739.52 ▼3.64
CLICKSPORTS Maps /wp-admin/options-general.php?page=clicksports-maps1,2572.5038.7739.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/clicksports-maps/public/partials/clicksports-maps-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/clicksports-maps/admin/partials/clicksports-maps-admin-display.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: alternative, clicksports, maps, google maps alternative, map...

clicksports-maps/clicksports-maps.php Passed 13 tests

The main PHP script in "CLICKSPORTS Maps" version 1.3.6 is automatically included on every request by WordPress
99 characters long description:
This plugin is a simple alternative to Google Maps and displays a customizable map on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,833 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14364818915
PO File2158226382
CSS26927270
JavaScript285162266

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.22
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods613.95%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin