10% webisonline

Code Review | WebisOnline

WordPress plugin WebisOnline scored10%from 54 tests.

About plugin

  • Plugin page: webisonline
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Oct 30, 2015
  • Latest release: May 30, 2016
  • Number of updates: 8
  • Update frequency: every 26.6 days
  • Top authors: Webisgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,516 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

Server metrics [RAM: ▼1.97MB] [CPU: ▼53.85ms] Passed 4 tests

An overview of server-side resources used by WebisOnline
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.51 ▼34.67
Dashboard /wp-admin2.05 ▼1.305.81 ▼56.97
Posts /wp-admin/edit.php2.05 ▼1.316.04 ▼39.32
Add New Post /wp-admin/post-new.php2.05 ▼3.845.69 ▼84.43
Media Library /wp-admin/upload.php2.05 ▼1.186.25 ▼28.94

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
webisonline_site_id
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WebisOnline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.35 ▼0.241.76 ▲0.0744.16 ▼0.13
Dashboard /wp-admin2,207 ▲305.64 ▲0.0479.71 ▼22.0881.41 ▲36.11
Posts /wp-admin/edit.php2,115 ▲151.98 ▼0.0133.74 ▼6.4431.48 ▼4.26
Add New Post /wp-admin/post-new.php1,554 ▲2823.03 ▼0.55660.80 ▼12.4061.88 ▼2.08
Media Library /wp-admin/upload.php1,409 ▲124.18 ▲0.00100.54 ▲1.1263.35 ▲16.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • webisonline_site_id
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/webisonline/templates/script.php
    • > /wp-content/plugins/webisonline/webisonline.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: site_id in wp-content/plugins/webisonline/templates/script.php on line 2
    • > PHP Notice
      Undefined variable: error in wp-content/plugins/webisonline/templates/error.php on line 7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/webisonline/templates/page.php:8
    • > PHP Notice
      Undefined variable: error in wp-content/plugins/webisonline/templates/page.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/webisonline/templates/error.php:9

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

webisonline/webisonline.php 77% from 13 tests

The entry point to "WebisOnline" version 2.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 279 characters long)
  • Domain Path: Use only dashes and lowercase characters for the domain path ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin508 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45928337
PO File138135140
CSS12031

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/success.png2.42KB1.12KB▼ 53.58%
img/logo.png7.47KB3.64KB▼ 51.27%
img/icon.png0.70KB0.76KB0.00%