78% dashboard-custom-feed-admin

Code Review | Dashboard Custom Feed Admin

WordPress plugin Dashboard Custom Feed Admin scored 78% from 54 tests.

About plugin

  • Plugin page: dashboard-custom-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2014
  • Latest release: Jun 19, 2014
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: enshrined (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 858 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▲5.70ms] Passed 4 tests

A check of server-side resources used by Dashboard Custom Feed Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.22 ▼4.62
Dashboard /wp-admin3.40 ▲0.1060.45 ▲11.65
Posts /wp-admin/edit.php3.50 ▲0.1572.00 ▲21.63
Add New Post /wp-admin/post-new.php5.98 ▲0.10105.13 ▲3.84
Media Library /wp-admin/upload.php3.33 ▲0.1046.13 ▲11.91
Add New /wp-admin/post-new.php?post_type=dcf_update3.4356.28
All Updates /wp-admin/edit.php?post_type=dcf_update3.3543.27
DCF Admin Settings /wp-admin/options-general.php?page=dfca-setting-admin3.2738.96

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
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Dashboard Custom Feed Admin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.62 ▼0.684.37 ▲2.3143.05 ▼8.84
Dashboard /wp-admin2,237 ▲464.86 ▼0.01109.25 ▲6.6739.92 ▼4.22
Posts /wp-admin/edit.php2,123 ▲311.99 ▼0.0649.71 ▲8.9043.29 ▲9.23
Add New Post /wp-admin/post-new.php1,540 ▲2017.83 ▼5.27658.14 ▼10.7550.31 ▼9.85
Media Library /wp-admin/upload.php1,416 ▲284.21 ▼0.03100.30 ▼2.2343.39 ▼1.24
Add New /wp-admin/post-new.php?post_type=dcf_update2,1547.57181.4364.15
All Updates /wp-admin/edit.php?post_type=dcf_update1,0841.9830.3229.87
DCF Admin Settings /wp-admin/options-general.php?page=dfca-setting-admin8242.0326.3831.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=dfca-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=dfca-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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 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-admin/Dashboard-Custom-Feed-Admin-Options.php:142
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-custom-feed-admin/Dashboard-Custom-Feed-Admin-Options.php:142

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: feed, dashboard, custom

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

The main PHP script in "Dashboard Custom Feed Admin" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dashboard-custom-feed-admin.php" instead of "Dashboard-Custom-Feed-Admin.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
There were no executable files found in this plugin193 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23750193

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.50
▷ Minimum class complexity4.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.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
PNG images were not found in this plugin