78% delivery-location-map

Code Review | Delivery Location Map

WordPress plugin Delivery Location Map scored78%from 54 tests.

About plugin

  • Plugin page: delivery-location...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2020
  • Latest release: Jul 11, 2020
  • Number of updates: 10
  • Update frequency: every 2.2 days
  • Top authors: peerwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,038 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.52ms] Passed 4 tests

An overview of server-side resources used by Delivery Location Map
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0123.24 ▼19.32
Dashboard /wp-admin3.40 ▲0.0944.69 ▼5.12
Posts /wp-admin/edit.php3.51 ▲0.1549.57 ▲6.27
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.61 ▲3.37
Media Library /wp-admin/upload.php3.32 ▲0.0932.92 ▼5.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delivery Location Map
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼28114.41 ▼0.240.59 ▼1.2516.22 ▼26.99
Dashboard /wp-admin2,206 ▲185.85 ▼0.00107.30 ▼10.7542.12 ▼0.80
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0239.86 ▲2.1533.49 ▼1.53
Add New Post /wp-admin/post-new.php1,535 ▲223.21 ▲0.00593.15 ▼123.2477.13 ▲19.91
Media Library /wp-admin/upload.php1,388 ▼34.17 ▲0.0194.77 ▼11.6743.03 ▼0.60

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

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
Even though no errors were found, this is by no means 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/delivery-location-map/image/qrcode.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: code in wp-content/plugins/delivery-location-map/image/qrcode.php on line 3

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wordpress, wordpressorg, woocommerce checkout map, woocommerce checkout, google map

delivery-location-map/delivery-location-map.php 92% from 13 tests

"Delivery Location Map" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected526 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22934442
JavaScript122072
CSS11012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/empty.png2.48KB0.13KB▼ 94.57%
image/street-map.png34.19KB17.90KB▼ 47.64%