89% wp-hotell-managed

Code Review | WP Managed

WordPress plugin WP Managed scored89%from 54 tests.

About plugin

  • Plugin page: wp-hotell-managed
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Apr 18, 2022
  • Number of updates: 12
  • Update frequency: every 75.5 days
  • Top authors: wphotell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /553 total downloads

Benchmarks

Plugin footprint 82% 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.09MB] [CPU: ▼3.77ms] Passed 4 tests

A check of server-side resources used by WP Managed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.41 ▲3.05
Dashboard /wp-admin3.39 ▲0.0949.38 ▲2.07
Posts /wp-admin/edit.php3.51 ▲0.1546.17 ▼8.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.40 ▼11.38
Media Library /wp-admin/upload.php3.32 ▲0.0935.19 ▲2.27
WP Managed /wp-admin/options-general.php?page=wphotell-managed3.2830.86

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • You have illegally modified 1 file (4.18KB) outside of "wp-content/plugins/wp-hotell-managed/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
wphm_blacklisted_ips
wphm_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Managed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲16513.50 ▼0.851.83 ▼0.2944.44 ▼5.29
Dashboard /wp-admin2,213 ▲224.86 ▼1.02111.43 ▲10.2643.77 ▲1.62
Posts /wp-admin/edit.php2,093 ▼02.00 ▲0.0337.70 ▼9.2834.50 ▼8.99
Add New Post /wp-admin/post-new.php1,523 ▼1923.64 ▲5.46663.94 ▲12.1959.38 ▲0.61
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.03118.72 ▲15.8445.32 ▲1.90
WP Managed /wp-admin/options-general.php?page=wphotell-managed9662.0224.0530.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: staging, limit login, disable updates, united works

wp-hotell-managed/wphotell-managed.php 77% from 13 tests

This is the main PHP file of "WP Managed" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-hotell-managed.php" instead of "wphotell-managed.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin683 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29754370
SVG111185
PO File13738116
CSS10012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/united-works-logo-teal-plugin.png6.38KB4.88KB▼ 23.53%