68% wp-auto-hotel-finder

Code Review | WP Auto Hotel Finder

WordPress plugin WP Auto Hotel Finder scored68%from 54 tests.

About plugin

  • Plugin page: wp-auto-hotel-finder
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Aug 8, 2015
  • Number of updates: 12
  • Update frequency: every 4.2 days
  • Top authors: lucia.intelisano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,017 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.21ms] Passed 4 tests

Server-side resources used by WP Auto Hotel Finder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.85 ▼5.30
Dashboard /wp-admin2.99 ▼0.3123.98 ▼29.01
Posts /wp-admin/edit.php3.00 ▼0.3628.36 ▼25.42
Add New Post /wp-admin/post-new.php2.99 ▼2.8926.19 ▼67.04
Media Library /wp-admin/upload.php2.99 ▼0.2322.11 ▼15.35
WP Auto Hotel Finder /wp-admin/options-general.php?page=wp-auto-hotel-finder/wp-auto-hotel-finder.php3.0022.25

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Auto Hotel Finder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.151.91 ▲0.0539.11 ▼5.23
Dashboard /wp-admin2,193 ▲165.64 ▲0.1094.00 ▲0.5643.98 ▲4.33
Posts /wp-admin/edit.php2,104 ▲11.98 ▲0.0240.00 ▼3.3534.21 ▼4.49
Add New Post /wp-admin/post-new.php1,529 ▲123.30 ▲0.03638.65 ▼50.9164.70 ▲10.05
Media Library /wp-admin/upload.php1,398 ▼54.21 ▲0.03101.71 ▼1.4643.69 ▼2.82
WP Auto Hotel Finder /wp-admin/options-general.php?page=wp-auto-hotel-finder/wp-auto-hotel-finder.php8972.0326.0926.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-auto-hotel-finder/wp-auto-hotel-finder.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-hotel-finder/wp-auto-hotel-finder.php:110

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (48 tag instead of maximum 10)
The official readme.txt might help

wp-auto-hotel-finder/wp-auto-hotel-finder.php Passed 13 tests

The main PHP script in "WP Auto Hotel Finder" version 2.0 is automatically included on every request by WordPress
61 characters long description:
A plugin to get/find hotels on google maps in a very easy way

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
No dangerous file extensions were detected703 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110943302
PHP15632205
CSS1200116
HTML116080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions10
▷ Named functions10100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/Accomodation.png0.35KB0.27KB▼ 22.28%