74% wpdevhub-dlm

Code Review | WPDevHub Link Manager

WordPress plugin WPDevHub Link Manager scored74%from 54 tests.

About plugin

  • Plugin page: wpdevhub-dlm
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 27, 2018
  • Latest release: Dec 17, 2019
  • Number of updates: 11
  • Update frequency: every 57.4 days
  • Top authors: benhallbenhall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /718 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.76ms] Passed 4 tests

An overview of server-side resources used by WPDevHub Link Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.04 ▲0.85
Dashboard /wp-admin3.43 ▲0.1344.02 ▼5.60
Posts /wp-admin/edit.php3.49 ▲0.1342.07 ▼5.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.22 ▼8.33
Media Library /wp-admin/upload.php3.30 ▲0.0734.56 ▲0.01
WDH Links /wp-admin/admin.php?page=wpdevhub-dlm-links3.3034.16
Settings /wp-admin/admin.php?page=wpdevhub-dlm-settings3.2932.55

Server storage [IO: ▲0.72MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 76 new files
Database: 2 new tables, 7 new options
New tables
wp_wpdevhub_dlm_hits
wp_wpdevhub_dlm_links
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
wpdevhub-dlm-db-version

Browser metrics Passed 4 tests

WPDevHub Link Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.30 ▼1.081.78 ▲0.0644.56 ▼7.47
Dashboard /wp-admin2,240 ▲555.89 ▲0.03105.98 ▲5.7538.46 ▼5.59
Posts /wp-admin/edit.php2,123 ▲312.06 ▲0.0436.73 ▼6.0933.40 ▼0.01
Add New Post /wp-admin/post-new.php1,557 ▲1423.11 ▲4.68662.55 ▲49.7759.04 ▲0.93
Media Library /wp-admin/upload.php1,425 ▲374.12 ▼0.1099.85 ▲1.5639.61 ▼6.65
WDH Links /wp-admin/admin.php?page=wpdevhub-dlm-links8232.1924.8925.10
Settings /wp-admin/admin.php?page=wpdevhub-dlm-settings8151.6828.4929.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wpdevhub_dlm_links
    • wp_wpdevhub_dlm_hits
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • wpdevhub-dlm-db-version
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dimbal_add_define() in wp-content/plugins/wpdevhub-dlm/inc/inc.ver.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_StandardLinkRecord' not found in wp-content/plugins/wpdevhub-dlm/classes/zone/class.DSCF_DLM_ZoneItem.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_Utilities' not found in wp-content/plugins/wpdevhub-dlm/pages/wpdevhub-dlm-reports.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_Utilities' not found in wp-content/plugins/wpdevhub-dlm/pages/inc.settings-base.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_StandardMain' not found in wp-content/plugins/wpdevhub-dlm/classes/class.DSCF_DLM_Links_Main.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_StandardMetaBox' not found in wp-content/plugins/wpdevhub-dlm/classes/core/class.DSCF_DLM_StandardMetaBoxAndDbObject.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dimbal_add_define() in wp-content/plugins/wpdevhub-dlm/inc/inc.env.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_Utilities' not found in wp-content/plugins/wpdevhub-dlm/pages/wpdevhub-dlm-home.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'DSCF_DLM_VirtualPages_TemplateLoaderInterface' not found in wp-content/plugins/wpdevhub-dlm/classes/vp/class.DSCF_DLM_VirtualPages_TemplateLoader.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DSCF_DLM_Utilities' not found in wp-content/plugins/wpdevhub-dlm/pages/inc.settings-base.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: links link management

wpdevhub-dlm/index.php 92% from 13 tests

The main file in "WPDevHub Link Manager" v. 2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpdevhub-dlm.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,772 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP421,4522,2226,373
CSS110529763
JavaScript3127175636

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity29.00
▷ Minimum class complexity1.00
▷ Maximum class complexity240.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods448
▷ Static methods29866.52%
▷ Public methods40991.29%
▷ Protected methods368.04%
▷ Private methods30.67%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants248
▷ Global constants52.02%
▷ Class constants24397.98%
▷ Public constants243100.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
25 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/group.png2.04KB1.52KB▼ 25.61%
images/cog.png2.06KB1.65KB▼ 19.86%
images/logo_300.png14.72KB4.28KB▼ 70.95%
images/delete.png1.84KB1.55KB▼ 15.79%
images/no_saved_objects.png69.99KB57.68KB▼ 17.59%