94% frontend-dashboard-templates

Code Review | Frontend Dashboard Templates

WordPress plugin Frontend Dashboard Templates scored 94% from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 5.8.1
  • First release: Dec 10, 2017
  • Latest release: Aug 18, 2020
  • Number of updates: 31
  • Update frequency: every 31.7 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 31,678 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼141.92ms] Passed 4 tests

Analyzing server-side resources used by Frontend Dashboard Templates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.66 ▲14.51
Dashboard /wp-admin3.07 ▲0.0145.58 ▼3.63
Posts /wp-admin/edit.php3.12 ▲0.0146.91 ▲4.48
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.24 ▼563.73
Media Library /wp-admin/upload.php3.01 ▲0.0031.68 ▼4.80

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Frontend Dashboard Templates: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11315.84 ▼0.159.89 ▼1.3042.69 ▼5.90
Dashboard /wp-admin2,987 ▲566.16 ▲0.16134.88 ▼7.43112.68 ▼4.50
Posts /wp-admin/edit.php2,758 ▲192.71 ▼0.1368.03 ▼0.7489.51 ▼9.54
Add New Post /wp-admin/post-new.php1,684 ▲6918.87 ▼2.97387.56 ▲104.45109.19 ▲3.92
Media Library /wp-admin/upload.php1,827 ▲205.02 ▲0.01141.12 ▼6.55113.73 ▼6.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FED_Routes' not found in wp-content/plugins/frontend-dashboard-templates/templates/fedt_default.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fedt_show_users_by_role() in wp-content/plugins/frontend-dashboard-templates/templates/user_role.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fed_get_dashboard_url() in wp-content/plugins/frontend-dashboard-templates/layouts/layout1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fed_register_only() in wp-content/plugins/frontend-dashboard-templates/templates/login/register-only.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fed_login_form() in wp-content/plugins/frontend-dashboard-templates/templates/login/unregistered-user.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fed_login_only() in wp-content/plugins/frontend-dashboard-templates/templates/login/login-only.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontend-dashboard-templates/FEDT_Page_Loader.php:130
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/frontend-dashboard-templates/templates/author.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/frontend-dashboard-templates/templates/dashboard.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fed_forgot_password_only() in wp-content/plugins/frontend-dashboard-templates/templates/login/forgot-password-only.php:6

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)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

frontend-dashboard-templates/frontend-dashboard-templates.php 92% from 13 tests

"Frontend Dashboard Templates" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,627 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity7.00
▷ Maximum class complexity47.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods15.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png5.28KB1.53KB▼ 71.04%