84% blipstar-store-locator

Code Review | Blipstar Store Locator

WordPress plugin Blipstar Store Locator scored84%from 54 tests.

About plugin

  • Plugin page: blipstar-store-lo...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Nov 26, 2012
  • Latest release: Apr 11, 2013
  • Number of updates: 8
  • Update frequency: every 17.0 days
  • Top authors: blipstar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,550 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
Install script ran successfully

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

Analyzing server-side resources used by Blipstar Store Locator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.89 ▲1.01
Dashboard /wp-admin3.32 ▲0.0248.02 ▼1.49
Posts /wp-admin/edit.php3.37 ▲0.0246.39 ▼1.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.26 ▼2.78
Media Library /wp-admin/upload.php3.24 ▲0.0237.28 ▲1.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Blipstar Store Locator: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5314.84 ▲0.431.77 ▼0.3538.15 ▼7.54
Dashboard /wp-admin2,216 ▲284.84 ▼0.07120.17 ▲12.9442.39 ▲2.84
Posts /wp-admin/edit.php2,098 ▲92.00 ▼0.0439.10 ▼2.7435.56 ▲1.43
Add New Post /wp-admin/post-new.php1,544 ▲3023.49 ▲5.78667.52 ▼9.2550.82 ▼3.04
Media Library /wp-admin/upload.php1,398 ▲134.25 ▼0.07104.26 ▲3.7246.90 ▲4.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blipstar-store-locator/blipstar_store_locator.php:94

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Example of the shortcode used to embed your store locator in a page or post), #2 (Example store locator embedded in page)
You can look at the official readme.txt

blipstar-store-locator/blipstar_store_locator.php 92% from 13 tests

The principal PHP file in "Blipstar Store Locator" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("blipstar-store-locator.php" instead of "blipstar_store_locator.php")

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
Good job! No executable or dangerous file extensions detected98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1241198

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.94KB12.20KB0.00%