89% geoplatform-community-search

Code Review | GeoPlatform Community Search

WordPress plugin GeoPlatform Community Search scored 89% from 54 tests.

About plugin

  • Plugin page: geoplatform-commu...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.4-5.0.1
  • WordPress version: 5.9.2
  • First release: Oct 12, 2018
  • Latest release: Dec 28, 2018
  • Number of updates: 6
  • Update frequency: every 21.8 days
  • Top authors: imagemattersllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 503 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼300.54ms] Passed 4 tests

A check of server-side resources used by GeoPlatform Community Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0953.73 ▲0.94
Dashboard /wp-admin3.48 ▲0.0736.44 ▲1.71
Posts /wp-admin/edit.php3.71 ▲0.0637.72 ▼0.65
Add New Post /wp-admin/post-new.php6.95 ▼0.0294.96 ▼1,200.90
Media Library /wp-admin/upload.php3.36 ▲0.0625.45 ▼1.56

Server storage [IO: ▲0.16MB] [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: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by GeoPlatform Community Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3716.14 ▲0.148.09 ▲1.542.23 ▼0.52
Dashboard /wp-admin2,905 ▲446.42 ▲0.27119.69 ▼19.77155.49 ▼5.72
Posts /wp-admin/edit.php2,704 ▲103.25 ▲0.0165.05 ▼0.26143.85 ▼4.85
Add New Post /wp-admin/post-new.php1,765 ▲7520.97 ▼0.67451.48 ▼9.30155.47 ▼9.32
Media Library /wp-admin/upload.php1,705 ▲105.59 ▲0.05126.77 ▼19.72189.56 ▲1.12
GeoPlatform Community Search /wp-admin/options-general.php?page=GeoPlatform Community Search1,6702.7259.01167.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php
  • 41× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 41
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-admin.php on line 5
    • > PHP Notice
      Undefined variable: geopmap_shortcode_array in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 198
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 235
    • > PHP Notice
      Undefined variable: geopmap_shortcode_array in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 37
    • > PHP Notice
      Undefined variable: geopcomsearch_pagingVal in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 250
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-admin.php on line 2
    • > PHP Notice
      Undefined variable: geopmap_shortcode_array in wp-content/plugins/geoplatform-community-search/includes/geoplatform-community-search-core.php on line 67

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: community search, search, shortcode, interactive, portfolio...

geoplatform-community-search/geoplatform-community-search.php Passed 13 tests

The main file in "GeoPlatform Community Search" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Search for geoplatform community objects.

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
Success! There were no dangerous files found in this plugin2,121 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32366191,250
PHP37845593
CSS24914278

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin