10% laughing-squid-dashboard-widget

Code Review | Laughing Squid Web Hosting News & Status WordPress Dashboard Widget

WordPress plugin Laughing Squid Web Hosting News & Status WordPress Dashboard Widget scored 10% from 54 tests.

About plugin

  • Plugin page: laughing-squid-da...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 5.9.2
  • First release: Jun 22, 2012
  • Latest release: Dec 7, 2016
  • Number of updates: 20
  • Update frequency: every 81.4 days
  • Top authors: sdenike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 5,649 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/laughing-squid-dashboard-widget/laughing-squid-dashboard-widget.php+65
    Methods with the same name as their class will not be constructors in a future version of PHP; LSHostingMenu has a deprecated constructor

Server metrics [RAM: ▼2.50MB] [CPU: ▼344.71ms] Passed 4 tests

An overview of server-side resources used by Laughing Squid Web Hosting News & Status WordPress Dashboard Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.88 ▼1.644.47 ▼46.64
Dashboard /wp-admin1.90 ▼1.515.11 ▼27.72
Posts /wp-admin/edit.php1.90 ▼1.743.73 ▼34.58
Add New Post /wp-admin/post-new.php1.90 ▼5.104.45 ▼1,269.90
Media Library /wp-admin/upload.php1.90 ▼1.404.61 ▼20.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Laughing Squid Web Hosting News & Status WordPress Dashboard Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,966 ▲21216.27 ▲0.517.02 ▲1.192.84 ▲0.41
Dashboard /wp-admin3,035 ▲1816.15 ▼0.15119.30 ▼14.61156.31 ▼3.14
Posts /wp-admin/edit.php2,722 ▲343.24 ▲0.0063.98 ▲3.37139.94 ▼1.30
Add New Post /wp-admin/post-new.php1,777 ▲6617.45 ▼3.30402.19 ▼40.38154.62 ▲0.56
Media Library /wp-admin/upload.php1,726 ▲255.52 ▲0.03142.34 ▼2.71182.78 ▼1.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/laughing-squid-dashboard-widget/laughing-squid-dashboard-widget.php+65
    Methods with the same name as their class will not be constructors in a future version of PHP; LSHostingMenu has a deprecated constructor

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/laughing-squid-dashboard-widget/laughing-squid-dashboard-widget.php:62

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

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Dashboard Widget in action) image not found
You can take inspiration from this readme.txt

laughing-squid-dashboard-widget/laughing-squid-dashboard-widget.php 92% from 13 tests

The entry point to "Laughing Squid Web Hosting News & Status WordPress Dashboard Widget" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 260 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
Good job! No executable or dangerous file extensions detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161280

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ 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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin