10% geodigs

Code Review | GeoDigs

WordPress plugin GeoDigs scored 10% from 54 tests.

About plugin

  • Plugin page: geodigs
  • Plugin version: 3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jan 12, 2017
  • Number of updates: 90
  • Update frequency: every 6.1 days
  • Top authors: NewMediaOne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,651 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/geodigs/functions/format.php+37
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.98ms] Passed 4 tests

A check of server-side resources used by GeoDigs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.61 ▼2.43
Dashboard /wp-admin3.31 ▲0.0049.92 ▲4.76
Posts /wp-admin/edit.php3.36 ▲0.0046.60 ▼0.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.06 ▼9.52
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▲0.03

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

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

Browser metrics Passed 4 tests

GeoDigs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.171.73 ▼0.1043.44 ▲4.73
Dashboard /wp-admin2,206 ▲215.91 ▲0.05111.29 ▲14.0543.32 ▲1.22
Posts /wp-admin/edit.php2,086 ▼02.03 ▲0.0333.29 ▼2.5034.24 ▲2.86
Add New Post /wp-admin/post-new.php1,533 ▼023.07 ▼0.24598.88 ▼108.3055.02 ▼2.15
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0293.13 ▼12.1643.04 ▼3.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
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
The following issues need your attention
  • 15× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/geodigs/templates/listings/featured.php
    • > /wp-content/plugins/geodigs/includes/listings-results.php
    • > /wp-content/plugins/geodigs/geodigs.php
    • > /wp-content/plugins/geodigs/templates/listings/map-preview.php
    • > /wp-content/plugins/geodigs/templates/listings/footer.php
    • > /wp-content/plugins/geodigs/includes/forgot-password.php
    • > /wp-content/plugins/geodigs/templates/emails/more-info-request.php
    • > /wp-content/plugins/geodigs/templates/listings/header.php
    • > /wp-content/plugins/geodigs/includes/more-info-requested.php
    • > /wp-content/plugins/geodigs/modals/map-single.php
  • 225× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: phone in wp-content/plugins/geodigs/templates/emails/more-info-request.php on line 7
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/geodigs/templates/emails/new-file-added-to-document-store.php on line 1
    • > PHP Notice
      Undefined variable: link_address in wp-content/plugins/geodigs/includes/featured-row.php on line 21
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/geodigs/templates/listings/footer.php on line 10
    • > PHP Notice
      Undefined variable: gd_api in wp-content/plugins/geodigs/includes/featured-row.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function gd_get_option() in wp-content/plugins/geodigs/admin/includes/custom-search-form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/geodigs/widgets/quick-search-modal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geodigs/templates/listings/details.php:17
    • > PHP Notice
      Undefined variable: pagination in wp-content/plugins/geodigs/templates/listings/header.php on line 29
    • > PHP Notice
      Trying to get property 'readable' of non-object in wp-content/plugins/geodigs/templates/account/settings.php on line 51

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === geodigs === )
The official readme.txt might help

geodigs/geodigs.php Passed 13 tests

The main file in "GeoDigs" v. 3.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
125 characters long description:
GeoDigs allows you to connect with clients and help them find the perfect home through REcolorado and IRES IDX MLS solutions.

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
Good job! No executable or dangerous file extensions detected12,685 lines of code in 120 files:
LanguageFilesBlank linesComment linesLines of code
PHP879718927,021
CSS132251963,824
JavaScript147612681,389
JSON100391
SVG50560

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.94
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes31
▷ Abstract classes26.45%
▷ Concrete classes2993.55%
▷ Final classes00.00%
Methods225
▷ Static methods7332.44%
▷ Public methods20992.89%
▷ Protected methods00.00%
▷ Private methods167.11%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants81
▷ Global constants7693.83%
▷ Class constants56.17%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui/icon-bed.png1.19KB0.25KB▼ 78.77%
admin/assets/images/layout-rows.png1.10KB0.11KB▼ 89.63%
assets/images/ui/icon-trash.png4.22KB3.95KB▼ 6.37%
assets/images/ui/settings-icon.png1.88KB0.78KB▼ 58.60%
assets/images/ui/icon-bath.png1.11KB0.20KB▼ 82.28%