89% wc-maps

Code Review | Maps for WooCommerce

WordPress plugin Maps for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: wc-maps
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2021
  • Latest release: Apr 21, 2021
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: keikaavousi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 341 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.08ms] Passed 4 tests

A check of server-side resources used by Maps for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.83 ▼7.59
Dashboard /wp-admin3.33 ▲0.0348.60 ▲0.46
Posts /wp-admin/edit.php3.39 ▲0.0346.63 ▼2.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0399.59 ▲3.16
Media Library /wp-admin/upload.php3.26 ▲0.0337.95 ▲1.52

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Maps for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲22713.22 ▼1.221.90 ▲0.2440.81 ▲0.38
Dashboard /wp-admin2,347 ▲1594.87 ▼0.02105.29 ▼0.1938.84 ▼1.61
Posts /wp-admin/edit.php2,226 ▲1372.02 ▲0.0236.27 ▼4.7932.20 ▼2.25
Add New Post /wp-admin/post-new.php1,547 ▲2822.79 ▼0.31599.52 ▼43.6853.18 ▼7.81
Media Library /wp-admin/upload.php1,529 ▲1444.31 ▲0.1498.15 ▼14.9742.03 ▼0.17

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Add a description for screenshot #2 in wc-maps/assets to your readme.txt
The official readme.txt might help

wc-maps/index.php 92% from 13 tests

The main PHP file in "Maps for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-maps.php" instead of "index.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
There were no executable files found in this plugin115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2397115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin