84% advanced-dashboard-for-woocommerce

Code Review | Advanced Dashboard for WooCommerce

WordPress plugin Advanced Dashboard for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: advanced-dashboar...
  • Plugin version: 0.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Mar 16, 2017
  • Number of updates: 6
  • Update frequency: every 14.7 days
  • Top authors: Piotr Pesta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Advanced Dashboard for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.74 ▼2.24
Dashboard /wp-admin3.31 ▲0.0049.49 ▼2.04
Posts /wp-admin/edit.php3.36 ▲0.0053.63 ▲1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.81 ▼18.57
Media Library /wp-admin/upload.php3.23 ▲0.0037.20 ▲2.87

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Dashboard for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.48 ▲0.112.01 ▼0.0046.19 ▲3.25
Dashboard /wp-admin2,211 ▲225.86 ▲0.95110.55 ▼12.8743.16 ▼2.01
Posts /wp-admin/edit.php2,097 ▲82.02 ▲0.0439.29 ▼3.8238.27 ▲1.45
Add New Post /wp-admin/post-new.php1,428 ▼10818.14 ▼5.10524.69 ▼111.3428.42 ▼32.72
Media Library /wp-admin/upload.php1,390 ▲54.17 ▼0.05103.02 ▲1.5037.45 ▼4.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-dashboard-for-woocommerce/pp-woocommerce-advanced-dashboard.php:14

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: advanced, dashboard, plugin, woocommerce, quantity...

advanced-dashboard-for-woocommerce/pp-woocommerce-advanced-dashboard.php 92% from 13 tests

This is the main PHP file of "Advanced Dashboard for WooCommerce" version 0.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-dashboard-for-woocommerce.php" instead of "pp-woocommerce-advanced-dashboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected393 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37613369
JavaScript12916
CSS1108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.25
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1789.47%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected