78% local-search-seo-contact-page

Code Review | Local Search SEO Contact Page

WordPress plugin Local Search SEO Contact Page scored78%from 54 tests.

About plugin

  • Plugin page: local-search-seo-...
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Jul 7, 2011
  • Latest release: Aug 17, 2018
  • Number of updates: 84
  • Update frequency: every 31.0 days
  • Top authors: ExpertBusinessSearch (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active /79,217 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.49MB] [CPU: ▼23.50ms] Passed 4 tests

Server-side resources used by Local Search SEO Contact Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2833.00 ▼9.82
Dashboard /wp-admin3.42 ▲0.1231.60 ▼18.40
Posts /wp-admin/edit.php3.50 ▲0.1437.19 ▼13.68
Add New Post /wp-admin/post-new.php3.46 ▼2.4339.75 ▼52.09
Media Library /wp-admin/upload.php3.45 ▲0.2232.76 ▼3.94
Settings /wp-admin/admin.php?page=local_search_seo_contact_page_settings3.4129.98
Edit Location /wp-admin/post-new.php?post_type=ebs_location3.4642.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
ebs_seo_cp_upgrade_premium_dismiss
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Local Search SEO Contact Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.27 ▼0.091.72 ▼0.1739.26 ▼6.69
Dashboard /wp-admin2,235 ▲585.69 ▲0.1296.79 ▲2.8840.73 ▼1.12
Posts /wp-admin/edit.php2,140 ▲402.04 ▲0.0637.55 ▲1.4737.91 ▲2.35
Add New Post /wp-admin/post-new.php1,557 ▲3123.39 ▼0.14683.85 ▲35.5853.65 ▼4.76
Media Library /wp-admin/upload.php1,440 ▲404.21 ▲0.01104.67 ▼1.6749.31 ▲1.38
Settings /wp-admin/admin.php?page=local_search_seo_contact_page_settings1,1843.6256.4231.78
Edit Location /wp-admin/post-new.php?post_type=ebs_location2,6973.8466.4257.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • ebs_seo_cp_upgrade_premium_dismiss
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ebs_location
    • > Notice in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-functions.php+188
    Undefined index: post_type
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ebs_location
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ebs_location
    • > Notice in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-settings.php+202
    Undefined index: page
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ebs_location
    • > Notice in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-meta-boxes.php+298
    Undefined variable: check

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
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-functions.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-contextual-help.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-functions.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-search-seo-contact-page/local-search-seo-contact-page-meta-boxes.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: local, schema, structured data, seo, contact

local-search-seo-contact-page/local-search-seo-contact-page-output.php 92% from 13 tests

This is the main PHP file of "Local Search SEO Contact Page" version 4.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("local-search-seo-contact-page.php" instead of "local-search-seo-contact-page-output.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,756 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP51674621,638
JavaScript24285
CSS2134233

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Expert-Business-Search-Com-Local-SEO-Plugin-Google-My-Business-Logo.png1.43KB1.49KB0.00%
images/Expert-Business-Search-Com-Local-SEO-Plugin-Digg-Logo.png4.12KB1.50KB▼ 63.71%
images/Expert-Business-Search-Com-Local-SEO-Plugin-Twitter-Logo.png4.62KB1.70KB▼ 63.31%
images/Expert-Business-Search-Com-Local-SEO-Plugin-Google-Plus-Logo.png4.45KB1.64KB▼ 63.20%
images/Expert-Business-Search-Com-Local-SEO-Plugin-LinkedIn-Logo.png4.03KB1.44KB▼ 64.21%