73% l-squared-hub-wp-virtual-device

Code Review | L Squared Hub WP - Virtual Device Plugin

WordPress plugin L Squared Hub WP - Virtual Device Plugin scored73%from 54 tests.

About plugin

  • Plugin page: l-squared-hub-wp-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 19, 2017
  • Latest release: May 20, 2019
  • Number of updates: 8
  • Update frequency: every 91.9 days
  • Top authors: wplsquared (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /614 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.78MB] [CPU: ▼57.56ms] Passed 4 tests

A check of server-side resources used by L Squared Hub WP - Virtual Device Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.265.86 ▼38.90
Dashboard /wp-admin2.23 ▼1.086.64 ▼43.74
Posts /wp-admin/edit.php2.23 ▼1.136.06 ▼49.66
Add New Post /wp-admin/post-new.php2.23 ▼3.666.56 ▼97.92
Media Library /wp-admin/upload.php2.23 ▼1.008.79 ▼26.25

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

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/l-squared-hub-wp-virtual-device/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_lsnCarousel
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for L Squared Hub WP - Virtual Device Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15714.63 ▲0.267.50 ▲5.7143.42 ▼5.70
Dashboard /wp-admin2,227 ▲245.20 ▲0.31103.67 ▼0.7175.08 ▲34.20
Posts /wp-admin/edit.php2,118 ▲182.30 ▲0.2936.57 ▼3.8132.51 ▼6.12
Add New Post /wp-admin/post-new.php1,550 ▲523.26 ▼0.07676.15 ▼17.0247.67 ▼5.27
Media Library /wp-admin/upload.php1,418 ▲214.55 ▲0.33113.49 ▲10.0384.15 ▲34.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/l-squared-hub-wp-virtual-device/lsnCarousel.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: lsquared hub virtual device plugin, virtual device plugin, hub, lsquared hub, slider...

l-squared-hub-wp-virtual-device/lsnCarousel.php 85% from 13 tests

The main file in "L Squared Hub WP - Virtual Device Plugin" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("l-squared-hub-wp-virtual-device.php" instead of "lsnCarousel.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,036 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2116100651
SVG100288
JavaScript219676
CSS24621

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity10.20
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.12KB0.12KB▼ 89.38%