84% frontend-dashboard-pages

Code Review | Frontend Dashboard Pages

WordPress plugin Frontend Dashboard Pages scored84%from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.4.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2017
  • Latest release: Jul 11, 2020
  • Number of updates: 13
  • Update frequency: every 73.7 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /23,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Frontend Dashboard Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.43 ▼3.89
Dashboard /wp-admin3.31 ▲0.0051.82 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0048.95 ▲2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.30 ▲3.07
Media Library /wp-admin/upload.php3.23 ▲0.0031.18 ▲0.13

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Frontend Dashboard Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.62 ▼0.991.80 ▼0.0437.61 ▼7.51
Dashboard /wp-admin2,215 ▲275.84 ▼0.0794.26 ▼23.6140.91 ▼5.33
Posts /wp-admin/edit.php2,104 ▲152.06 ▲0.0339.89 ▲2.2235.93 ▲0.24
Add New Post /wp-admin/post-new.php1,554 ▲3518.68 ▼4.66609.48 ▼90.4555.01 ▼6.81
Media Library /wp-admin/upload.php1,397 ▲94.18 ▲0.0195.44 ▼5.0441.41 ▼2.80

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-pages/functions.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Frontend' not found in wp-content/plugins/frontend-dashboard-pages/main_menu/class-fedp-elementor.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontend-dashboard-pages/install.php:7

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: frontend dashboard pages, dashboard, custom pages, pages in dashboard

frontend-dashboard-pages/frontend-dashboard-pages.php 85% from 13 tests

The main file in "Frontend Dashboard Pages" v. 1.5.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
There were no executable files found in this plugin474 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP573128463
JavaScript10011

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.50
Average class complexity24.50
▷ Minimum class complexity10.00
▷ Maximum class complexity39.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin