84% frontend-dashboard-extra

Code Review | Frontend Dashboard Extra

WordPress plugin Frontend Dashboard Extra scored84%from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.5.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Dec 11, 2017
  • Latest release: Jul 17, 2020
  • Number of updates: 19
  • Update frequency: every 50.0 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /22,849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Frontend Dashboard Extra
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.91 ▼4.38
Dashboard /wp-admin3.31 ▲0.0148.98 ▼2.83
Posts /wp-admin/edit.php3.36 ▲0.0050.69 ▼8.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.63 ▼0.73
Media Library /wp-admin/upload.php3.23 ▲0.0037.10 ▲2.37

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Frontend Dashboard Extra
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.34 ▼0.012.43 ▲0.6743.01 ▲1.40
Dashboard /wp-admin2,204 ▲275.51 ▼0.0786.39 ▼5.8242.90 ▼0.87
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0139.77 ▼2.2938.10 ▼3.46
Add New Post /wp-admin/post-new.php1,540 ▲1423.12 ▼0.49603.09 ▼53.2344.06 ▼12.21
Media Library /wp-admin/upload.php1,415 ▲214.22 ▲0.05101.05 ▼6.3149.22 ▲2.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-extra/functions.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: file upload, date, color, frontend dashboard extra, dashboard...

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

The principal PHP file in "Frontend Dashboard Extra" v. 1.5.10 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin966 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6113147949
JavaScript10017
CSS1100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/inputs/wp_editor.png0.60KB0.12KB▼ 80.75%
assets/images/inputs/color.png3.46KB1.24KB▼ 64.17%
assets/images/inputs/date.png3.64KB1.36KB▼ 62.76%
assets/images/inputs/label.png0.95KB0.59KB▼ 37.65%
assets/images/inputs/file.png3.42KB1.21KB▼ 64.78%