89% ss-map-md-streets-suggestions

Code Review | Streets Suggestions via map.md for WooCommerce

WordPress plugin Streets Suggestions via map.md for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: ss-map-md-streets...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 8
  • Update frequency: every 155.6 days
  • Top authors: wpsimplesolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Streets Suggestions via map.md for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.98 ▼3.91
Dashboard /wp-admin3.33 ▲0.0245.24 ▼9.42
Posts /wp-admin/edit.php3.38 ▲0.0249.05 ▲1.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.42 ▼2.82
Media Library /wp-admin/upload.php3.25 ▲0.0234.89 ▲1.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Streets Suggestions via map.md for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.24 ▼0.101.67 ▼0.1136.77 ▼7.05
Dashboard /wp-admin2,195 ▲235.61 ▼0.1190.82 ▼13.5139.35 ▼6.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0539.48 ▼1.8236.12 ▼0.32
Add New Post /wp-admin/post-new.php1,526 ▼323.56 ▲0.42584.44 ▼63.3453.20 ▼7.18
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0397.45 ▲3.6643.35 ▲1.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: mapmd, streets suggestions, map-md, moldova strazi, woocommerce

ss-map-md-streets-suggestions/ss-woo-map-md-suggestions.php 77% from 13 tests

This is the main PHP file of "Streets Suggestions via map.md for WooCommerce" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ss-map-md-streets-suggestions.php" instead of "ss-woo-map-md-suggestions.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "5.6")

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
No dangerous file extensions were detected1,046 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript218157818
PO File32530107
PHP42447103
Markdown13012
CSS1116

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin