89% blueocean-woo-order-map

Code Review | BlueOcean order map for WooCommerce

WordPress plugin BlueOcean order map for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: blueocean-woo-ord...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 2, 2020
  • Latest release: Sep 4, 2020
  • Number of updates: 24
  • Update frequency: every 0.1 days
  • Top authors: blueoceanplus (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /631 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.10MB] [CPU: ▼2.81ms] Passed 4 tests

Analyzing server-side resources used by BlueOcean order map for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.07 ▲2.05
Dashboard /wp-admin3.43 ▲0.1350.63 ▲6.04
Posts /wp-admin/edit.php3.48 ▲0.1245.86 ▲1.72
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.12 ▼13.66
Media Library /wp-admin/upload.php3.29 ▲0.0633.45 ▼1.36

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

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

Browser metrics Passed 4 tests

Checking browser requirements for BlueOcean order map for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13114.57 ▲0.201.90 ▲0.3644.09 ▲8.50
Dashboard /wp-admin2,273 ▲925.62 ▼0.0995.22 ▼4.6282.31 ▲38.51
Posts /wp-admin/edit.php2,182 ▲822.10 ▲0.0936.72 ▼0.4231.56 ▼1.98
Add New Post /wp-admin/post-new.php1,605 ▲7918.14 ▼5.12631.90 ▼49.27145.57 ▲87.86
Media Library /wp-admin/upload.php1,481 ▲814.25 ▲0.0397.57 ▼14.0161.96 ▲14.08
Other Settings /wp-admin/admin.php?page=bo_woo_order_map#tab=other-settings1,2344.1771.8850.80
Main settings /wp-admin/admin.php?page=bo_woo_order_map#tab=main-settings1,2934.7473.24102.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • bo_woo_order_map

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

blueocean-woo-order-map/index.php 85% from 13 tests

The main PHP script in "BlueOcean order map for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("blueocean-woo-order-map.php" instead of "index.php")

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 detected33,806 lines of code in 123 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript85,2006,94916,059
PHP732,1819979,121
PO File233,3623,7057,108
CSS55324567
Sass5882473
Markdown3870397
SVG50154
JSON10027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity19.71
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity5.94
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods209
▷ Static methods6330.14%
▷ Public methods19693.78%
▷ Protected methods10.48%
▷ Private methods125.74%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants1
▷ Global constants1100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/leaflet/images/marker-shadow.png0.60KB1.16KB0.00%
assets/lib/leaflet/images/marker-icon.png1.43KB1.55KB0.00%
assets/lib/leaflet/images/layers-2x.png1.23KB1.67KB0.00%
assets/lib/leaflet/images/marker-icon-2x.png2.41KB2.52KB0.00%
assets/lib/leaflet/images/layers.png0.68KB1.05KB0.00%