84% support-email-dashboard-widget

Code Review | Support Email Dashboard Widget

WordPress plugin Support Email Dashboard Widget scored84%from 54 tests.

About plugin

  • Plugin page: support-email-das...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 16, 2017
  • Latest release: Apr 16, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: andypitechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /587 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.03MB] [CPU: ▼11.39ms] Passed 4 tests

A check of server-side resources used by Support Email Dashboard Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.38 ▼4.01
Dashboard /wp-admin3.08 ▼0.2226.93 ▼19.13
Posts /wp-admin/edit.php3.39 ▲0.0447.29 ▼2.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.73 ▼18.65
Media Library /wp-admin/upload.php3.27 ▲0.0432.93 ▼3.75
Support Email Dashboard /wp-admin/options-general.php?page=support-email-dash-settings3.2330.16

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Support Email Dashboard Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.63 ▼1.041.89 ▲0.2441.73 ▲2.55
Dashboard /wp-admin2,210 ▲255.79 ▲0.88130.62 ▲21.6556.27 ▲15.37
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0138.64 ▲3.9935.23 ▲1.82
Add New Post /wp-admin/post-new.php1,541 ▲2123.25 ▲0.07669.18 ▼10.2452.60 ▲4.49
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0293.66 ▼23.6341.48 ▼7.49
Support Email Dashboard /wp-admin/options-general.php?page=support-email-dash-settings7982.0623.3525.40

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/support-email-dashboard-widget/sed-options.php:176
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/support-email-dashboard-widget/sed-options.php:176

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention: The official readme.txt might help

support-email-dashboard-widget/support-email-dashboard.php 92% from 13 tests

"Support Email Dashboard Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("support-email-dashboard-widget.php" instead of "support-email-dashboard.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
Success! There were no dangerous files found in this plugin182 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24839182

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin