90% widget-dashboard-for-elementor

Code Review | Widget Dashboard for Elementor

WordPress plugin Widget Dashboard for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: widget-dashboard-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 15, 2023
  • Latest release: Nov 7, 2023
  • Number of updates: 6
  • Update frequency: every 14.7 days
  • Top authors: w3dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.31ms] Passed 4 tests

An overview of server-side resources used by Widget Dashboard for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.30 ▼4.04
Dashboard /wp-admin3.35 ▲0.0046.12 ▼15.10
Posts /wp-admin/edit.php3.40 ▲0.0447.11 ▲1.40
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.25 ▼3.06
Media Library /wp-admin/upload.php3.27 ▲0.0432.10 ▼3.02
Widget Dashboard for Elementor /wp-admin/tools.php?page=widget-dashboard-elementor3.2531.61

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

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

Browser metrics Passed 4 tests

Widget Dashboard for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.20 ▼0.151.87 ▲0.1343.51 ▼1.79
Dashboard /wp-admin2,193 ▲165.53 ▼0.1584.04 ▼13.6940.35 ▼4.80
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0234.18 ▼4.4633.23 ▼0.81
Add New Post /wp-admin/post-new.php1,529 ▲323.37 ▲0.23635.73 ▼54.5657.81 ▲2.42
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0496.31 ▼7.4340.63 ▼3.24
Widget Dashboard for Elementor /wp-admin/tools.php?page=widget-dashboard-elementor7982.1622.8126.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • 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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: dashboard, elementor, widgets, elements, widget...

widget-dashboard-for-elementor/widget-dashboard-for-elementor.php Passed 13 tests

The entry point to "Widget Dashboard for Elementor" version 1.0.2 is a PHP file that has certain tags in its header comment area
96 characters long description:
A dashboard plugin show Elementor widgets and elements usage across your Wordpress installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25219231
CSS1010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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
No PNG files were detected