84% map-near-me

Code Review | Map Near Me

WordPress plugin Map Near Me scored84%from 54 tests.

About plugin

  • Plugin page: map-near-me
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Jul 20, 2020
  • Latest release: Nov 4, 2020
  • Number of updates: 7
  • Update frequency: every 15.3 days
  • Top authors: blessedlogic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /588 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: ▼4.34ms] Passed 4 tests

Analyzing server-side resources used by Map Near Me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.68 ▼0.89
Dashboard /wp-admin3.32 ▲0.0244.45 ▼4.56
Posts /wp-admin/edit.php3.37 ▲0.0245.05 ▼4.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.31 ▼7.27
Media Library /wp-admin/upload.php3.24 ▲0.0135.01 ▲2.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Map Near Me: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.58 ▼0.801.64 ▼0.0544.05 ▲1.97
Dashboard /wp-admin2,206 ▲184.81 ▼0.05103.18 ▼2.0944.35 ▼0.95
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0333.07 ▼4.0735.96 ▲2.69
Add New Post /wp-admin/post-new.php1,533 ▼023.22 ▼0.06662.39 ▼47.2852.27 ▼1.90
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0697.42 ▼3.1044.43 ▼2.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-near-me/map-near-me.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: store locator, map search, map, near me, locations...

map-near-me/map-near-me.php Passed 13 tests

"Map Near Me" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Creates a button that links to Google Map that searches for a keyword near me or near a zip code.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1114463

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions3
▷ Named functions3100.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
No PNG files were detected