83% experto-custom-dashboard

Code Review | Experto Custom Dashboard - Custom Dashboard, Dashboard Customization, Dashboard, My Account Plugin

WordPress plugin Experto Custom Dashboard - Custom Dashboard, Dashboard Customization, Dashboard, My Account Plugin scored 83% from 54 tests.

About plugin

  • Plugin page: experto-custom-da...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 9, 2023
  • Latest release: May 23, 2023
  • Number of updates: 6
  • Update frequency: every 2.3 days
  • Top authors: uxdexperts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Experto Custom Dashboard - Custom Dashboard, Dashboard Customization, Dashboard, My Account Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.53 ▼8.40
Dashboard /wp-admin3.31 ▲0.0146.61 ▼2.40
Posts /wp-admin/edit.php3.36 ▲0.0045.55 ▲1.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.75 ▲6.20
Media Library /wp-admin/upload.php3.23 ▲0.0035.33 ▼2.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Experto Custom Dashboard - Custom Dashboard, Dashboard Customization, Dashboard, My Account Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.431.73 ▼0.2241.47 ▼4.36
Dashboard /wp-admin2,206 ▲324.88 ▼0.01105.74 ▼9.5139.99 ▼7.00
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0536.59 ▼0.0833.03 ▼3.67
Add New Post /wp-admin/post-new.php1,542 ▲2818.68 ▲1.24601.78 ▼76.4757.20 ▲10.62
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0795.28 ▼16.9142.73 ▼3.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/experto-custom-dashboard/admin/partials/ewc-admin-settings.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_orders() in wp-content/plugins/experto-custom-dashboard/public/partials/ewc-wc-account-dashboard.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/experto-custom-dashboard/templates/ewc-template.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 on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can take inspiration from this readme.txt

experto-custom-dashboard/ewc.php 77% from 13 tests

The main file in "Experto Custom Dashboard - Custom Dashboard, Dashboard Customization, Dashboard, My Account Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.5.4" instead of "3.3.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("experto-custom-dashboard.php" instead of "ewc.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,693 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS3194242,293
PHP15242203848
JavaScript213559353
SVG100199

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions4
▷ Named functions4100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/cwd-icon.png6.70KB3.34KB▼ 50.06%
templates/woocommerce/myaccount/logo-uxdesignexperts.png13.72KB3.83KB▼ 72.06%