83% dashboard-feeds-dashboard-widget

Code Review | Dashboard Feeds Dashboard Widget

WordPress plugin Dashboard Feeds Dashboard Widget scored83%from 54 tests.

About plugin

  • Plugin page: dashboard-feeds-d...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 24, 2022
  • Latest release: Feb 24, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: virtualmarketadvantage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲3.58MB] [CPU: ▲21.83ms] Passed 4 tests

An overview of server-side resources used by Dashboard Feeds Dashboard Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /6.86 ▲3.4060.15 ▲20.64
Dashboard /wp-admin6.92 ▲3.6265.77 ▲19.53
Posts /wp-admin/edit.php6.98 ▲3.6269.28 ▲21.57
Add New Post /wp-admin/post-new.php9.69 ▲3.80120.29 ▲25.58
Media Library /wp-admin/upload.php6.93 ▲3.7067.27 ▲27.38
Dashboard Feeds /wp-admin/edit.php?post_type=dashboard_feed6.8955.90

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dashboard Feeds Dashboard Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.441.79 ▲0.1435.48 ▼6.74
Dashboard /wp-admin2,204 ▲235.57 ▼0.0986.99 ▼18.0937.20 ▼7.21
Posts /wp-admin/edit.php2,106 ▲62.03 ▼0.0040.93 ▲4.9135.07 ▲2.53
Add New Post /wp-admin/post-new.php6,686 ▲5,14924.48 ▲6.201,029.82 ▲402.1255.96 ▼25.07
Media Library /wp-admin/upload.php1,964 ▲5648.22 ▲4.01196.80 ▲91.9944.63 ▼0.95
Dashboard Feeds /wp-admin/edit.php?post_type=dashboard_feed1,0341.9632.2526.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • acf_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 77× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/fields/class-acf-field-accordion.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_get_setting() in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/admin/views/html-notice-upgrade.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/acf-field-functions.php:4
    • > PHP Notice
      Undefined variable: rule in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/admin/views/html-location-rule.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/fields/class-acf-field-checkbox.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_number' not found in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/fields/class-acf-field-range.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/api/api-template.php:898
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/admin/views/field-group-field.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/fields/class-acf-field-tab.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-feeds-dashboard-widget/includes/acf/includes/forms/form-attachment.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Widget with RSS feed from The Onion), #2 (Several widgets in closed position on the dashboard), #3 (Add a new RSS feed)
  • Donate link: Invalid URI ("vma.agency")
You can take inspiration from this readme.txt

dashboard-feeds-dashboard-widget/dashboard_feeds.php 92% from 13 tests

The main PHP script in "Dashboard Feeds Dashboard Widget" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dashboard-feeds-dashboard-widget.php" instead of "dashboard_feeds.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin112,389 lines of code in 202 files:
LanguageFilesBlank linesComment linesLines of code
PO File3123,80540,55148,965
JavaScript175,8835,98938,456
PHP1388,50718,22718,884
CSS154957396,078
SVG1006

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.72
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes102
▷ Abstract classes21.96%
▷ Concrete classes10098.04%
▷ Final classes00.00%
Methods746
▷ Static methods10.13%
▷ Public methods72797.45%
▷ Protected methods00.00%
▷ Private methods192.55%
Functions451
▷ Named functions44799.11%
▷ Anonymous functions40.89%
Constants10
▷ Global constants10100.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
10 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
includes/acf/assets/inc/select2/3/select2x2.png0.64KB0.77KB0.00%
assets/banner-772x250.png85.71KB32.29KB▼ 62.33%
includes/acf/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png3.68KB4.17KB0.00%
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%