78% dashboard-user-profile-dup

Code Review | Plugin

WordPress plugin Plugin scored78%from 54 tests.

About plugin

  • Plugin page: dashboard-user-pr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Dec 4, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Hk Hasan khan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,919 total downloads

Benchmarks

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.00MB] [CPU: ▼6.49ms] Passed 4 tests

An overview of server-side resources used by Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.65 ▼1.40
Dashboard /wp-admin3.32 ▼0.0346.60 ▼14.78
Posts /wp-admin/edit.php3.36 ▲0.0147.46 ▲5.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.17 ▼13.08
Media Library /wp-admin/upload.php3.24 ▲0.0135.44 ▲3.30
Dashboard User Profile (DUP) /wp-admin/options-general.php?page=dup-plugin-options_options3.2328.68

Server storage [IO: ▲0.14MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲20813.26 ▼1.111.63 ▼0.2641.26 ▼1.48
Dashboard /wp-admin2,355 ▲1705.01 ▼0.84105.47 ▼1.8146.66 ▲2.83
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0239.79 ▲4.6742.53 ▲5.07
Add New Post /wp-admin/post-new.php1,536 ▲823.21 ▲4.79665.66 ▲39.6553.11 ▼9.78
Media Library /wp-admin/upload.php1,386 ▲14.19 ▼0.1395.76 ▲0.2341.85 ▼3.45
Dashboard User Profile (DUP) /wp-admin/options-general.php?page=dup-plugin-options_options8792.0322.0939.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=dup-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=dup-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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/dashboard-user-profile-dup/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-user-profile-dup/index.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% 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
5 plugin tags: user, wp-admin profile, dashboard user profile, user widget, profile widget

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

Analyzing the main PHP file in "Plugin" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dashboard-user-profile-dup.php" instead of "index.php")

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 plugin192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23148153
CSS10039

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot2.png47.29KB15.36KB▼ 67.52%
screenshot/screenshot1.png18.97KB10.41KB▼ 45.14%