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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.35 ▼4.60 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.45 ▼6.72 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 47.31 ▼10.28 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.65 ▼8.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.65 ▲0.30 | 1.76 ▼0.14 | 39.32 ▼5.47 |
Dashboard /wp-admin | 2,219 ▲39 | 5.76 ▲0.09 | 91.40 ▲3.54 | 77.44 ▲31.40 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.28 ▲0.29 | 37.73 ▼8.16 | 33.91 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.26 ▲0.14 | 776.01 ▲99.52 | 37.92 ▼8.64 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.42 ▲0.16 | 113.70 ▲13.34 | 82.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 558 | 619 | 1,678 |
JavaScript | 1 | 2 | 1 | 5 |
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 code | 0.42 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 63.86% |
▷ Protected methods | 30 | 36.14% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 1.53KB | 0.69KB | ▼ 54.93% |
img/wbicon_small.png | 0.66KB | 0.68KB | 0.00% |
img/wbicon.png | 2.12KB | 1.64KB | ▼ 22.63% |