84% live-dashboard

Code Review | Live Dashboard

WordPress plugin Live Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: live-dashboard
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 22, 2012
  • Latest release: Feb 20, 2013
  • Number of updates: 15
  • Update frequency: every 4.0 days
  • Top authors: Mike_Cowobo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.26ms] Passed 4 tests

An overview of server-side resources used by Live Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.99 ▼2.84
Dashboard /wp-admin3.44 ▲0.1449.36 ▼1.42
Posts /wp-admin/edit.php3.55 ▲0.2052.25 ▲3.18
Add New Post /wp-admin/post-new.php6.02 ▲0.1397.50 ▲0.06
Media Library /wp-admin/upload.php3.36 ▲0.1340.32 ▲6.23

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Live Dashboard: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6014.34 ▼0.061.81 ▼0.1142.05 ▼4.36
Dashboard /wp-admin2,240 ▲635.58 ▼0.2085.43 ▼13.5074.30 ▲30.66
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0045.60 ▲8.8335.41 ▼2.13
Add New Post /wp-admin/post-new.php1,536 ▲1018.18 ▼4.74601.79 ▼80.1969.73 ▲7.41
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0699.20 ▼10.6045.17 ▼3.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at 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 do_action() in wp-content/plugins/live-dashboard/lib/live-admin/live-admin-template.php:5

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

live-dashboard/live-dashboard.php Passed 13 tests

The main PHP file in "Live Dashboard" ver. 0.3.3 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Manage your website while you're browsing it.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,710 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP114503401,190
JavaScript57029272
CSS5568248

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.78
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods85
▷ Static methods78.24%
▷ Public methods7284.71%
▷ Protected methods910.59%
▷ Private methods44.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants23100.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_inc/images/dashboard_logo.png8.71KB4.06KB▼ 53.41%
lib/quick-menu/_inc/images/icons32-add.png16.42KB6.46KB▼ 60.65%
lib/quick-menu/_inc/images/customize.png2.40KB1.75KB▼ 26.94%
lib/quick-menu/_inc/images/themes.png2.16KB1.63KB▼ 24.50%