88% geoplatform-search

Code Review | GeoPlatform Search

WordPress plugin GeoPlatform Search scored 88% from 54 tests.

About plugin

  • Plugin page: geoplatform-search
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.4-5.0.1
  • WordPress version: 5.8.1
  • First release: Jul 19, 2018
  • Latest release: Dec 28, 2018
  • Number of updates: 8
  • Update frequency: every 20.4 days
  • Top authors: imagemattersllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 601 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.06MB] [CPU: ▼147.29ms] Passed 4 tests

Analyzing server-side resources used by GeoPlatform Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0627.74 ▲4.16
Dashboard /wp-admin3.13 ▲0.0636.23 ▼6.82
Posts /wp-admin/edit.php3.24 ▲0.1341.30 ▲6.89
Add New Post /wp-admin/post-new.php5.49 ▲0.0574.10 ▼589.40
Media Library /wp-admin/upload.php3.07 ▲0.0727.52 ▲2.89
GeoPlatform Search /wp-admin/options-general.php?page=geoplatform-search3.1140.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: no files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GeoPlatform Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,782 ▲18116.31 ▲0.298.29 ▲0.5877.75 ▲1.24
Dashboard /wp-admin2,939 ▲436.18 ▲0.02114.96 ▼13.45175.78 ▼0.11
Posts /wp-admin/edit.php2,749 ▲123.24 ▲0.0162.79 ▲0.48133.32 ▼5.00
Add New Post /wp-admin/post-new.php3,715 ▼9319.16 ▲0.19412.35 ▼95.87159.66 ▼2.88
Media Library /wp-admin/upload.php1,761 ▲95.52 ▼0.02140.53 ▼6.79187.48 ▲5.50
GeoPlatform Search /wp-admin/options-general.php?page=geoplatform-search1,0362.4155.02111.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php
    • > /wp-content/plugins/geoplatform-search/public/partials/geoplatform-search-public-display.php
  • 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-admin.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-admin.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 37
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 49
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 38
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 43
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 198
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 41
    • > PHP Notice
      Undefined variable: pagingVal in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The main PHP file in "GeoPlatform Search" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Browse, search, and filter GeoPlatform service objects.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,763 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
SVG13002,683
PHP16191615751
CSS45026300
JavaScript885924
JSON1005

PHP code Passed 2 tests

Analyzing 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 complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
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
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/marker-icon.png1.43KB1.55KB0.00%
assets/marker-shadow.png0.60KB1.16KB0.00%
assets/img-404.png2.51KB2.44KB▼ 2.72%
assets/favicon.png0.90KB0.50KB▼ 43.84%
assets/layers.png0.68KB1.05KB0.00%