10% lanyrd-splat-widget

Code Review | Lanyrd Splat Widget

WordPress plugin Lanyrd Splat Widget scored10%from 54 tests.

About plugin

  • Plugin page: lanyrd-splat-widget
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4
  • WordPress version: 6.3.1
  • First release: Jan 1, 2012
  • Latest release: Sep 16, 2012
  • Number of updates: 7
  • Update frequency: every 37.0 days
  • Top authors: toddhalfpenny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,426 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/lanyrd-splat-widget/lanyrd_splat.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; lanyrdSplat has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.46ms] Passed 4 tests

Server-side resources used by Lanyrd Splat Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.62 ▼37.35
Dashboard /wp-admin2.10 ▼1.2510.69 ▼52.79
Posts /wp-admin/edit.php2.10 ▼1.265.55 ▼49.15
Add New Post /wp-admin/post-new.php2.10 ▼3.796.71 ▼86.53
Media Library /wp-admin/upload.php2.10 ▼1.134.93 ▼27.74

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_lanyrdsplat

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lanyrd Splat Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.14 ▼1.611.74 ▼0.0942.86 ▼0.42
Dashboard /wp-admin2,206 ▲244.84 ▼0.04110.70 ▲1.1241.30 ▲3.06
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0034.99 ▼1.0635.15 ▲4.88
Add New Post /wp-admin/post-new.php1,533 ▼923.05 ▲4.95660.33 ▲51.2258.12 ▲1.43
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0794.78 ▼5.5143.76 ▼0.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/lanyrd-splat-widget/lanyrd_splat.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; lanyrdSplat has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_lanyrdsplat

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lanyrd-splat-widget/lanyrd_splat.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Setting up the Lanyrd widget.), #2 (The Lanyrd Widget in action.)
You can look at the official readme.txt

lanyrd-splat-widget/lanyrd_splat.php 92% from 13 tests

The primary PHP file in "Lanyrd Splat Widget" version 0.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lanyrd-splat-widget.php" instead of "lanyrd_splat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121698

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.14KB7.41KB▼ 61.28%
screenshot-2.png48.77KB17.25KB▼ 64.63%