84% wp-post-store-locator

Code Review | Store Locator for WordPress Posts

WordPress plugin Store Locator for WordPress Posts scored84%from 54 tests.

About plugin

  • Plugin page: wp-post-store-loc...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2017
  • Latest release: Mar 5, 2020
  • Number of updates: 5
  • Update frequency: every 177.6 days
  • Top authors: alokstha1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼0.14ms] Passed 4 tests

A check of server-side resources used by Store Locator for WordPress Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2142.68 ▲2.39
Dashboard /wp-admin3.51 ▲0.2151.16 ▲1.44
Posts /wp-admin/edit.php3.63 ▲0.2747.47 ▼4.76
Add New Post /wp-admin/post-new.php6.11 ▲0.23103.27 ▲6.49
Media Library /wp-admin/upload.php3.43 ▲0.2137.76 ▲0.39

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
slwp_store_options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Store Locator for WordPress Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲23615.17 ▲0.8511.86 ▲10.0743.37 ▲2.85
Dashboard /wp-admin2,235 ▲445.93 ▲1.02108.78 ▲3.2737.64 ▼4.66
Posts /wp-admin/edit.php2,118 ▲262.81 ▲0.7947.32 ▲3.5930.71 ▼5.26
Add New Post /wp-admin/post-new.php1,537 ▲1724.00 ▲0.91637.28 ▼72.9134.28 ▼17.91
Media Library /wp-admin/upload.php1,411 ▲265.23 ▲1.01105.05 ▼1.2442.56 ▼1.96

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • slwp_store_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-post-store-locator/metabox-form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-post-store-locator/wp-post-store-locator.php 92% from 13 tests

The principal PHP file in "Store Locator for WordPress Posts" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,256 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP42061411,157
JavaScript2192168568
CSS310433516
SVG10015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
markers/blue.png1.03KB0.85KB▼ 17.19%
assets/images/sprite.png5.94KB2.82KB▼ 52.51%
markers/red.png1.01KB0.89KB▼ 12.19%