10% dash-webhotelier-integrator

Code Review | The Webhotelier Integrator

WordPress plugin The Webhotelier Integrator scored10%from 54 tests.

About plugin

  • Plugin page: dash-webhotelier-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 18, 2019
  • Latest release: Jan 18, 2019
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: webcreativemaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /583 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/dash-webhotelier-integrator/HalimWebhotelier_Plugin.php+95
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.49ms] Passed 4 tests

Server-side resources used by The Webhotelier Integrator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.35 ▼4.60
Dashboard /wp-admin3.34 ▲0.0448.45 ▼6.72
Posts /wp-admin/edit.php3.45 ▲0.1047.31 ▼10.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.65 ▼8.37
Media Library /wp-admin/upload.php3.26 ▲0.0341.37 ▲5.73

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 27 new options
New WordPress options
HalimWebhotelier_Plugin_discountCenterbottom
HalimWebhotelier_Plugin_WebHotelierCSS
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
HalimWebhotelier_Plugin_ctaText
HalimWebhotelier_Plugin_WebHotelierProdCode
HalimWebhotelier_Plugin_ctapreText
HalimWebhotelier_Plugin_WebHotelierPromoImg
...

Browser metrics Passed 4 tests

Checking browser requirements for The Webhotelier Integrator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.65 ▲0.301.76 ▼0.1439.32 ▼5.47
Dashboard /wp-admin2,219 ▲395.76 ▲0.0991.40 ▲3.5477.44 ▲31.40
Posts /wp-admin/edit.php2,141 ▲412.28 ▲0.2937.73 ▼8.1633.91 ▼2.37
Add New Post /wp-admin/post-new.php1,555 ▲2923.26 ▲0.14776.01 ▲99.5237.92 ▼8.64
Media Library /wp-admin/upload.php1,439 ▲364.42 ▲0.16113.70 ▲13.3482.78 ▲36.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 27 options
    • widget_recent-posts
    • widget_recent-comments
    • HalimWebhotelier_Plugin_WebHotelierSiteID
    • HalimWebhotelier_Plugin__version
    • HalimWebhotelier_Plugin_discountCenterbottom
    • HalimWebhotelier_Plugin_WebHotelierPromoImg
    • HalimWebhotelier_Plugin_WebHotelierPromoTxt
    • HalimWebhotelier_Plugin_DefaultEngineBgColor
    • db_upgraded
    • can_compress_scripts
    • ...

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)
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dash-webhotelier-integrator/halim-webhotelier.php:77

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

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Requires at least: Invalid version format
The official readme.txt might help

dash-webhotelier-integrator/halim-webhotelier.php 85% from 13 tests

This is the main PHP file of "The Webhotelier Integrator" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dash-webhotelier-integrator.php" instead of "halim-webhotelier.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,683 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP85586191,678
JavaScript1215

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity22.33
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods83
▷ Static methods00.00%
▷ Public methods5363.86%
▷ Protected methods3036.14%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/close.png1.53KB0.69KB▼ 54.93%
img/wbicon_small.png0.66KB0.68KB0.00%
img/wbicon.png2.12KB1.64KB▼ 22.63%