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 scored10%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: 6.3.1
  • 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

40+ active /7,947 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
These installer errors require your attention
  • This plugin did not install gracefully
    • > 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: ▼1.93MB] [CPU: ▼54.54ms] Passed 4 tests

A check of server-side resources used by Laughing Squid Web Hosting News & Status WordPress Dashboard Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.69 ▼37.06
Dashboard /wp-admin2.08 ▼1.265.85 ▼56.79
Posts /wp-admin/edit.php2.09 ▼1.275.85 ▼43.02
Add New Post /wp-admin/post-new.php2.08 ▼3.805.87 ▼81.29
Media Library /wp-admin/upload.php2.08 ▼1.144.85 ▼29.23

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Laughing Squid Web Hosting News & Status WordPress Dashboard Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17814.80 ▲0.031.85 ▲0.0342.58 ▼0.73
Dashboard /wp-admin2,310 ▲1224.85 ▼0.02110.19 ▼7.3644.31 ▼0.33
Posts /wp-admin/edit.php2,112 ▲262.06 ▲0.0337.32 ▼1.1134.04 ▼2.26
Add New Post /wp-admin/post-new.php1,531 ▲1717.72 ▲0.07581.62 ▼76.8054.43 ▼3.31
Media Library /wp-admin/upload.php1,408 ▲234.19 ▼0.0397.55 ▼2.9843.21 ▲1.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Dashboard Widget in action)
You can take inspiration from this readme.txt

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

The primary PHP file in "Laughing Squid Web Hosting News & Status WordPress Dashboard Widget" version 2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)

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
Success! There were no dangerous files found in this plugin80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161280

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin