74% spoton-live

Code Review | SpotOn Live

WordPress plugin SpotOn Live scored74%from 54 tests.

About plugin

  • Plugin page: spoton-live
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: Apr 26, 2018
  • Number of updates: 14
  • Update frequency: every 16.5 days
  • Top authors: jrlspotonmarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.89MB] [CPU: ▼57.25ms] Passed 4 tests

A check of server-side resources used by SpotOn Live
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.357.46 ▼39.18
Dashboard /wp-admin2.17 ▼1.226.67 ▼63.30
Posts /wp-admin/edit.php2.17 ▼1.237.12 ▼37.68
Add New Post /wp-admin/post-new.php2.17 ▼3.768.32 ▼88.84
Media Library /wp-admin/upload.php2.17 ▼1.108.97 ▼28.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

SpotOn Live: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14814.75 ▲0.395.26 ▲3.7938.90 ▼9.26
Dashboard /wp-admin2,274 ▲1005.62 ▼0.0499.83 ▲1.1674.05 ▲31.75
Posts /wp-admin/edit.php2,170 ▲702.02 ▲0.0541.63 ▲4.6432.93 ▼1.36
Add New Post /wp-admin/post-new.php1,482 ▼5317.96 ▼0.28636.22 ▲11.9933.43 ▼31.04
Media Library /wp-admin/upload.php1,425 ▲224.22 ▼0.07120.59 ▲16.5981.66 ▲38.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_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 spoton-utm handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/spoton-live/modules/Core/Core.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'Module_core' not found in wp-content/plugins/spoton-live/modules/Core/views/settings.php:2

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

Optimizations

Plugin configuration 93% 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:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

spoton-live/spotonlive.php 92% from 13 tests

The main file in "SpotOn Live" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spoton-live.php" instead of "spotonlive.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,041 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP17254320909
JavaScript23748132

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.20
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods7298.63%
▷ Protected methods00.00%
▷ Private methods11.37%
Functions17
▷ Named functions00.00%
▷ Anonymous functions17100.00%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/Core/images/Logo-RGB.png20.36KB10.51KB▼ 48.37%
modules/Core/images/icon.png16.22KB0.89KB▼ 94.50%