84% woo-order-google-map-location-finder

Code Review | Woo order google map location finder

WordPress plugin Woo order google map location finder scored 84% from 54 tests.

About plugin

  • Plugin page: woo-order-google-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2016
  • Latest release: Feb 1, 2016
  • Number of updates: 32
  • Update frequency: every 0.8 days
  • Top authors: shamimdxb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 4,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.20ms] Passed 4 tests

This is a short check of server-side resources used by Woo order google map location finder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.61 ▼4.53
Dashboard /wp-admin3.31 ▲0.0143.28 ▼7.57
Posts /wp-admin/edit.php3.36 ▲0.0145.16 ▼5.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.59 ▲1.02
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▲3.56

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo order google map location finder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.241.67 ▼0.1842.31 ▼6.76
Dashboard /wp-admin2,206 ▲185.85 ▲0.97108.53 ▼1.9442.34 ▼1.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0739.19 ▲1.8534.36 ▼3.81
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.09590.66 ▼40.0145.76 ▼6.93
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0093.67 ▼5.5741.71 ▼2.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-order-google-map-location-finder/woo_order_google_map_location_finder.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: admin order location, google map location, woo commerce order delivery location finder, order delivery location finder, googlemap order location...

woo-order-google-map-location-finder/woo_order_google_map_location_finder.php 92% from 13 tests

The main PHP file in "Woo order google map location finder" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-order-google-map-location-finder.php" instead of "woo_order_google_map_location_finder.php")

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
No dangerous file extensions were detected204 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14945204

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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