78% dashboard-user-profile-detais-dupd

Code Review | Dashboard User profile Detais-(DUPD)

WordPress plugin Dashboard User profile Detais-(DUPD) scored 78% from 54 tests.

About plugin

  • Plugin page: dashboard-user-pr...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Oct 1, 2019
  • Number of updates: 6
  • Update frequency: every 257.3 days
  • Top authors: Hk Hasan khan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,241 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Dashboard User profile Detais-(DUPD)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.22 ▼0.20
Dashboard /wp-admin3.34 ▲0.0349.67 ▼2.07
Posts /wp-admin/edit.php3.38 ▲0.0343.97 ▼8.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.81 ▼7.84
Media Library /wp-admin/upload.php3.26 ▲0.0335.64 ▼0.42
Dashboard User profile Detais-(DUPD) /wp-admin/options-general.php?page=dupd-plugin-options_options3.2229.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Dashboard User profile Detais-(DUPD): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲21913.26 ▼0.745.81 ▲3.9242.86 ▼4.27
Dashboard /wp-admin2,355 ▲1644.85 ▼0.25106.85 ▼7.8443.59 ▼0.68
Posts /wp-admin/edit.php2,090 ▲12.03 ▼0.0034.34 ▼7.3232.16 ▼3.97
Add New Post /wp-admin/post-new.php1,517 ▼317.43 ▼5.82592.17 ▼47.9981.70 ▲17.25
Media Library /wp-admin/upload.php1,386 ▼24.25 ▲0.0899.15 ▲0.0842.01 ▲1.02
Dashboard User profile Detais-(DUPD) /wp-admin/options-general.php?page=dupd-plugin-options_options8792.0524.3040.02

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=dupd-plugin-options_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dupd-plugin-options_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-user-profile-detais-dupd/index.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/dashboard-user-profile-detais-dupd/options.php:3

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: dashboard user profile detais, profile widget, wp-admin profile, profile detais, user...

dashboard-user-profile-detais-dupd/index.php 92% from 13 tests

The primary PHP file in "Dashboard User profile Detais-(DUPD)" version 2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dashboard-user-profile-detais-dupd.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot2.png20.25KB12.35KB▼ 39.05%
screenshot/screenshot1.png37.22KB14.71KB▼ 60.48%