78% liveweb

Code Review | Liveweb

WordPress plugin Liveweb scored78%from 54 tests.

About plugin

  • Plugin page: liveweb
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2019
  • Latest release: May 25, 2022
  • Number of updates: 16
  • Update frequency: every 60.7 days
  • Top authors: liveweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /819 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.96ms] Passed 4 tests

An overview of server-side resources used by Liveweb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.01 ▼0.09
Dashboard /wp-admin3.32 ▲0.0271.56 ▲22.62
Posts /wp-admin/edit.php3.37 ▲0.0147.80 ▼2.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.67 ▼5.38
Media Library /wp-admin/upload.php3.25 ▲0.0135.54 ▼0.07

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Liveweb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /6,666 ▲3,90516.44 ▲2.09123.43 ▲121.5447.75 ▲4.55
Dashboard /wp-admin2,211 ▲375.65 ▼0.0186.92 ▼9.5338.48 ▼7.99
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0536.49 ▼2.1835.86 ▼0.35
Add New Post /wp-admin/post-new.php1,539 ▲1123.61 ▲0.49695.47 ▲27.7664.09 ▲12.75
Media Library /wp-admin/upload.php1,419 ▲194.21 ▼0.0296.24 ▼10.8041.34 ▼2.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/liveweb/liveweb.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/liveweb/includes/liveweb-class.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/liveweb/includes/liveweb-scripts.php:18

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (27 tag instead of maximum 10)
You can take inspiration from this readme.txt

liveweb/liveweb.php Passed 13 tests

The principal PHP file in "Liveweb" v. 1.1.0 is loaded by WordPress automatically on each request
21 characters long description:
WP Plugin for liveweb

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin169 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP33454149
JavaScript2068
JSON1007
CSS2065

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin