84% maxmindeu-hotel-reservations

Code Review | Maxmind.eu Hotel Reservations

WordPress plugin Maxmind.eu Hotel Reservations scored84%from 54 tests.

About plugin

  • Plugin page: maxmindeu-hotel-r...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Oct 3, 2013
  • Latest release: Jun 12, 2017
  • Number of updates: 14
  • Update frequency: every 96.3 days
  • Top authors: creavince (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,167 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.31MB] [CPU: ▼8.98ms] Passed 4 tests

Server-side resources used by Maxmind.eu Hotel Reservations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.73 ▼32.20
Dashboard /wp-admin3.35 ▲0.0445.99 ▼5.36
Posts /wp-admin/edit.php3.40 ▲0.0448.28 ▲3.88
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.62 ▲2.48
Media Library /wp-admin/upload.php3.27 ▲0.0433.99 ▼0.85
Maxmind Settings /wp-admin/options-general.php?page=vm_maxmind3.2434.11

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Maxmind.eu Hotel Reservations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.99 ▼0.388.66 ▲6.9543.73 ▲4.89
Dashboard /wp-admin2,213 ▲254.87 ▼1.03107.95 ▲2.0139.83 ▼5.68
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0439.84 ▲4.3935.97 ▲0.15
Add New Post /wp-admin/post-new.php1,536 ▲1722.72 ▼0.53641.21 ▼16.8163.90 ▲10.96
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0596.32 ▲0.3840.17 ▼1.55
Maxmind Settings /wp-admin/options-general.php?page=vm_maxmind9122.1723.1829.02

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/maxmindeu-hotel-reservations/maxmind.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: hotel, bookings, maxmind, reservation

maxmindeu-hotel-reservations/maxmind.php 92% from 13 tests

The main file in "Maxmind.eu Hotel Reservations" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maxmindeu-hotel-reservations.php" instead of "maxmind.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin200 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18152200

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin