10% sukellos-dashboard-bar

Code Review | Sukellos Dashboard Bar

WordPress plugin Sukellos Dashboard Bar scored10%from 54 tests.

About plugin

  • Plugin page: sukellos-dashboar...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.0
  • WordPress version: 6.3.1
  • First release: Mar 28, 2022
  • Latest release: Aug 17, 2023
  • Number of updates: 30
  • Update frequency: every 17.0 days
  • Top authors: sukellos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,572 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.74MB] [CPU: ▼54.18ms] Passed 4 tests

Analyzing server-side resources used by Sukellos Dashboard Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.225.88 ▼36.92
Dashboard /wp-admin2.26 ▼1.049.47 ▼44.12
Posts /wp-admin/edit.php2.27 ▼1.097.38 ▼43.52
Add New Post /wp-admin/post-new.php2.26 ▼3.627.49 ▼92.14
Media Library /wp-admin/upload.php2.26 ▼0.967.05 ▼30.47
Tools /wp-admin/admin.php?page=wp_sukellos_fw_tools2.267.89
Sukellos Fw /wp-admin/admin.php?page=wp_sukellos_fw_dashboard2.267.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 320 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Sukellos Dashboard Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.42 ▲0.021.22 ▼0.8840.55 ▲0.21
Dashboard /wp-admin2,371 ▲1936.30 ▲0.63125.78 ▲18.8541.70 ▼3.18
Posts /wp-admin/edit.php2,302 ▲2023.40 ▲1.3751.27 ▲8.9731.28 ▼6.80
Add New Post /wp-admin/post-new.php1,714 ▲18522.50 ▼0.62600.26 ▼22.9937.60 ▼12.90
Media Library /wp-admin/upload.php1,436 ▲334.22 ▲0.0493.36 ▼8.1747.34 ▲3.85
Tools /wp-admin/admin.php?page=wp_sukellos_fw_tools1,0713.1345.7635.45
Sukellos Fw /wp-admin/admin.php?page=wp_sukellos_fw_dashboard1,2943.2445.3243.42

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • wp_sukellos_fw_edd_licenses
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_sukellos_fw_dashboard
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_sukellos_fw_dashboard
    • > Warning in wp-content/plugins/sukellos-dashboard-bar/includes/managers/class-dashboard-bar-manager.php+65
    Invalid argument supplied for foreach()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_sukellos_fw_tools
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 96× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/Handler.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sukellos-dashboard-bar/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
8 plugin tags: option, custom admin panel, admin, post meta, user meta...

sukellos-dashboard-bar/sukellos-dashboard-bar.php 77% from 13 tests

"Sukellos Dashboard Bar" version 1.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin16,749 lines of code in 301 files:
LanguageFilesBlank linesComment linesLines of code
PHP1944,4999,92912,736
JavaScript862995072,426
CSS1344103716
Markdown41920604
JSON400267

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.53
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces22
Interfaces13
Traits10
Classes163
▷ Abstract classes2716.56%
▷ Concrete classes13683.44%
▷ Final classes32.21%
Methods1,128
▷ Static methods1049.22%
▷ Public methods81372.07%
▷ Protected methods23220.57%
▷ Private methods837.36%
Functions23
▷ Named functions14.35%
▷ Anonymous functions2295.65%
Constants136
▷ Global constants00.00%
▷ Class constants136100.00%
▷ Public constants11483.82%

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