78% dashboard-custom-feed

Code Review | Dashboard Custom Feed

WordPress plugin Dashboard Custom Feed scored78%from 54 tests.

About plugin

  • Plugin page: dashboard-custom-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2014
  • Latest release: Aug 8, 2014
  • Number of updates: 9
  • Update frequency: every 5.7 days
  • Top authors: enshrined (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 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.05MB] [CPU: ▼8.94ms] Passed 4 tests

Analyzing server-side resources used by Dashboard Custom Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.52 ▲2.14
Dashboard /wp-admin3.08 ▼0.2739.58 ▼27.42
Posts /wp-admin/edit.php3.39 ▲0.0350.69 ▲1.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.20 ▼11.83
Media Library /wp-admin/upload.php3.26 ▲0.0340.28 ▲2.48
DCF Settings /wp-admin/options-general.php?page=dfc-setting-admin3.2034.72

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Custom Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.27 ▼0.532.06 ▲0.4643.75 ▲2.73
Dashboard /wp-admin2,199 ▲255.60 ▲0.0591.41 ▲0.3141.73 ▼1.47
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.1035.56 ▼5.1632.15 ▼5.07
Add New Post /wp-admin/post-new.php1,548 ▲823.22 ▲4.83675.17 ▲16.7353.40 ▼3.52
Media Library /wp-admin/upload.php1,404 ▲74.21 ▼0.05108.87 ▲8.7147.70 ▲2.00
DCF Settings /wp-admin/options-general.php?page=dfc-setting-admin8062.0223.9331.06

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=dfc-setting-admin
    • > 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=dfc-setting-admin
    • > 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 | 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-custom-feed/Dashboard-Custom-Feed-Options.php:123
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-custom-feed/Dashboard-Custom-Feed-Options.php:123

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: custom, feed, dashboard

dashboard-custom-feed/Dashboard-Custom-Feed.php 92% from 13 tests

The main PHP file in "Dashboard Custom Feed" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dashboard-custom-feed.php" instead of "Dashboard-Custom-Feed.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
Good job! No executable or dangerous file extensions detected146 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23453146

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.50
▷ Minimum class complexity4.00
▷ Maximum class complexity5.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected