68% lw-all-in-one

Code Review | LocalWeb All In One

WordPress plugin LocalWeb All In One scored68%from 54 tests.

About plugin

  • Plugin page: lw-all-in-one
  • Plugin version: 1.7.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 21, 2019
  • Latest release: Oct 30, 2023
  • Number of updates: 46
  • Update frequency: every 30.6 days
  • Top authors: sajdoko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

6,000+ active /135,168 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.61ms] Passed 4 tests

An overview of server-side resources used by LocalWeb All In One
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2948.93 ▲5.36
Dashboard /wp-admin3.67 ▲0.3245.77 ▼10.71
Posts /wp-admin/edit.php3.72 ▲0.3646.14 ▲3.48
Add New Post /wp-admin/post-new.php6.19 ▲0.3084.91 ▼8.56
Media Library /wp-admin/upload.php3.53 ▲0.3039.28 ▲6.92
LW AIO Options /wp-admin/admin.php?page=lw_all_in_one3.7834.55
Privacy&Policy Pages /wp-admin/admin.php?page=lw_all_in_one_privacy_policy3.5537.70

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: 2 new tables, 8 new options
New tables
wp_lw_aio_a_events
wp_lw_aio_cf7
New WordPress options
widget_recent-posts
lw_all_in_one
db_upgraded
widget_recent-comments
lw_all_in_one_version
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for LocalWeb All In One
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.42 ▲0.141.63 ▼0.2843.61 ▲0.63
Dashboard /wp-admin2,220 ▲435.52 ▼0.1592.61 ▲1.8472.73 ▲29.72
Posts /wp-admin/edit.php2,122 ▲192.00 ▼0.0338.69 ▼7.3533.14 ▼4.01
Add New Post /wp-admin/post-new.php1,575 ▲4018.30 ▼0.09701.07 ▼11.5160.99 ▼8.33
Media Library /wp-admin/upload.php1,422 ▲224.17 ▼0.0396.52 ▼6.4767.30 ▲25.50
LW AIO Options /wp-admin/admin.php?page=lw_all_in_one1,4192.2432.3434.75
Privacy&Policy Pages /wp-admin/admin.php?page=lw_all_in_one_privacy_policy8092.2337.2131.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_lw_aio_cf7
    • wp_lw_aio_a_events
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • lw_all_in_one
    • widget_recent-posts
    • lw_all_in_one_version
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lw-all-in-one/public/partials/lw-all-in-one-public-display.php
    • > /wp-content/plugins/lw-all-in-one/admin/partials/lw-all-in-one-admin-display.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: domain in wp-content/plugins/lw-all-in-one/admin/privacy-pages/privacy.php on line 6
    • > PHP Notice
      Undefined variable: date in wp-content/plugins/lw-all-in-one/admin/privacy-pages/contact.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_filter_post_kses() in wp-content/plugins/lw-all-in-one/admin/privacy-pages/cookie.php:8
    • > PHP Notice
      Undefined variable: date in wp-content/plugins/lw-all-in-one/admin/privacy-pages/privacy.php on line 7
    • > PHP Notice
      Undefined variable: date in wp-content/plugins/lw-all-in-one/admin/privacy-pages/cookie.php on line 7
    • > PHP Notice
      Undefined variable: domain in wp-content/plugins/lw-all-in-one/admin/privacy-pages/cookie.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_filter_post_kses() in wp-content/plugins/lw-all-in-one/admin/privacy-pages/privacy.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_filter_post_kses() in wp-content/plugins/lw-all-in-one/admin/privacy-pages/contact.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: wim, chat, local web, aio, localweb...

lw-all-in-one/lw-all-in-one.php 85% from 13 tests

Analyzing the main PHP file in "LocalWeb All In One" version 1.7.4
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: The description should be shorter than 140 characters (currently 248 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,258 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP246418673,251
JavaScript6177861,119
PO File2294330807
HTML61340747
CSS32814250
Markdown143084

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.40
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods110
▷ Static methods98.18%
▷ Public methods9283.64%
▷ Protected methods21.82%
▷ Private methods1614.55%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png2.32KB0.76KB▼ 67.06%
admin/img/lw-fav.png1.39KB0.54KB▼ 61.18%