89% flx-dashboard-groups

Code Review | FLX Dashboard Groups

WordPress plugin FLX Dashboard Groups scored89%from 54 tests.

About plugin

  • Plugin page: flx-dashboard-groups
  • Plugin version: 0.0.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Feb 11, 2022
  • Number of updates: 20
  • Update frequency: every 52.5 days
  • Top authors: flx0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,893 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by FLX Dashboard Groups
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.54 ▼5.36
Dashboard /wp-admin3.35 ▲0.0445.43 ▼2.12
Posts /wp-admin/edit.php3.40 ▲0.0448.13 ▲3.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.54 ▼8.15
Media Library /wp-admin/upload.php3.27 ▲0.0439.39 ▲4.22
Dashboard Groups /wp-admin/options-general.php?page=flx_dashboard_groups3.2831.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by FLX Dashboard Groups
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.44 ▲0.051.57 ▼0.2538.12 ▼10.13
Dashboard /wp-admin2,211 ▲204.86 ▼1.03111.08 ▲5.2837.47 ▼7.94
Posts /wp-admin/edit.php2,097 ▲82.06 ▲0.0240.76 ▼0.7334.57 ▼0.50
Add New Post /wp-admin/post-new.php1,521 ▼717.54 ▼0.62599.33 ▼52.4853.58 ▼3.99
Media Library /wp-admin/upload.php1,393 ▲84.28 ▲0.0198.86 ▼7.2041.18 ▼4.43
Dashboard Groups /wp-admin/options-general.php?page=flx_dashboard_groups1,0392.0627.3059.54

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

flx-dashboard-groups/flx_dashboard_groups.php 85% from 13 tests

The main file in "FLX Dashboard Groups" v. 0.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("flx-dashboard-groups.php" instead of "flx_dashboard_groups.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,063 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13160411,032
CSS19028
JavaScript1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity18.33
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods61
▷ Static methods34.92%
▷ Public methods4370.49%
▷ Protected methods00.00%
▷ Private methods1829.51%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin