93% easy-store-locator

Code Review | Easy Store Locator

WordPress plugin Easy Store Locator scored 93% from 54 tests.

About plugin

  • Plugin page: easy-store-locator
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 11, 2015
  • Latest release: Feb 11, 2015
  • Number of updates: 3
  • Update frequency: every 9.7 days
  • Top authors: priyanshu.mittal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,199 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼132.75ms] Passed 4 tests

This is a short check of server-side resources used by Easy Store Locator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.05 ▲15.44
Dashboard /wp-admin3.07 ▲0.0156.07 ▲14.18
Posts /wp-admin/edit.php3.12 ▲0.0154.22 ▲8.74
Add New Post /wp-admin/post-new.php5.43 ▲0.00111.66 ▼548.10
Media Library /wp-admin/upload.php3.01 ▲0.0032.16 ▼5.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Store Locator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲11715.95 ▲0.448.26 ▲0.2646.66 ▼2.02
Dashboard /wp-admin2,990 ▲565.84 ▼0.10144.96 ▲4.27107.02 ▼12.18
Posts /wp-admin/edit.php2,759 ▲202.69 ▲0.0171.66 ▲5.7495.70 ▲10.90
Add New Post /wp-admin/post-new.php1,604 ▲10418.71 ▲0.18384.24 ▲14.10108.25 ▼10.91
Media Library /wp-admin/upload.php1,830 ▲205.02 ▲0.02145.46 ▲8.98121.90 ▼4.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-store-locator/lib/optionpanel/general-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-store-locator/easystorelocator.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-store-locator/easystorelocator-shortcode.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

easy-store-locator/easystorelocator.php 77% from 13 tests

The primary PHP file in "Easy Store Locator" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-store-locator.php" instead of "easystorelocator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin49 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3302949

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin