63% geoforms

Code Review | Geoforms

WordPress plugin Geoforms scored63%from 54 tests.

About plugin

  • Plugin page: geoforms
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 20, 2014
  • Latest release: Dec 22, 2014
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: rodeored (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Geoforms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.35 ▼2.35
Dashboard /wp-admin3.32 ▲0.0245.02 ▼1.90
Posts /wp-admin/edit.php3.38 ▲0.0244.85 ▼3.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.84 ▼10.28
Media Library /wp-admin/upload.php3.25 ▲0.0234.36 ▲0.86
Geolib /wp-admin/options-general.php?page=geolib-options3.2531.36

Server storage [IO: ▲0.37MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: 9 new tables, 9 new options
New tables
wp_geo_field_categories
wp_geo_field_elements
wp_geo_elements
wp_geo_fields
wp_geo_forms
wp_geo_values
wp_geo_form_fields
wp_geo_superforms
wp_geo_superform_forms
New WordPress options
geoform_page_id
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
geolib_dbout
geolib_debugging
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Geoforms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲19914.07 ▼0.515.90 ▲4.1440.48 ▼5.03
Dashboard /wp-admin2,245 ▲715.22 ▲0.37155.70 ▲37.6975.98 ▲25.07
Posts /wp-admin/edit.php2,111 ▲222.35 ▲0.3541.83 ▲5.5432.01 ▼5.47
Add New Post /wp-admin/post-new.php1,556 ▲2022.23 ▼1.01802.90 ▲120.4139.29 ▼14.65
Media Library /wp-admin/upload.php1,485 ▲944.56 ▲0.37108.84 ▲8.2145.91 ▲1.50
Geolib /wp-admin/options-general.php?page=geolib-options8582.1733.9329.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 9 tables
    • wp_geo_fields
    • wp_geo_forms
    • wp_geo_form_fields
    • wp_geo_field_categories
    • wp_geo_values
    • wp_geo_superform_forms
    • wp_geo_superforms
    • wp_geo_elements
    • wp_geo_field_elements
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • geoform_page_id
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • geolib_debugging
    • theysaidso_admin_options
    • geolib_dbout

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/geoforms/geolib/index.php
    • > /wp-content/plugins/geoforms/includedForm.php
    • > /wp-content/plugins/geoforms/uninstall.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoImg.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoTable.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'GeoForms' not found in wp-content/plugins/geoforms/classes/GeoFormsAdmin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoCell.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoBody.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoList.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geoforms/geoforms.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoSelect.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/geoforms/admin/geoforms-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GeoTag' not found in wp-content/plugins/geoforms/geolib/classes/GeoHtml.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=geolib-options
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/geoforms/js/geoFormsAdmin.js?ver=1.0.0:240:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=geolib-options
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: forms

geoforms/geoforms.php Passed 13 tests

The entry point to "Geoforms" version 0.1 is a PHP file that has certain tags in its header comment area
40 characters long description:
Create easily adaptable fields and forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,994 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP261,0112,3135,236
CSS41049399
JavaScript211341329
XML13219
Markdown19011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity38.00
▷ Minimum class complexity1.00
▷ Maximum class complexity101.00
Average method complexity5.27
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods156
▷ Static methods3522.44%
▷ Public methods14794.23%
▷ Protected methods10.64%
▷ Private methods85.13%
Functions69
▷ Named functions69100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%