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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.04 ▲0.85 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.02 ▼5.60 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 42.07 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 88.22 ▼8.33 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.56 ▲0.01 |
WDH Links /wp-admin/admin.php?page=wpdevhub-dlm-links | 3.30 | 34.16 |
Settings /wp-admin/admin.php?page=wpdevhub-dlm-settings | 3.29 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.30 ▼1.08 | 1.78 ▲0.06 | 44.56 ▼7.47 |
Dashboard /wp-admin | 2,240 ▲55 | 5.89 ▲0.03 | 105.98 ▲5.75 | 38.46 ▼5.59 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.06 ▲0.04 | 36.73 ▼6.09 | 33.40 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,557 ▲14 | 23.11 ▲4.68 | 662.55 ▲49.77 | 59.04 ▲0.93 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.12 ▼0.10 | 99.85 ▲1.56 | 39.61 ▼6.65 |
WDH Links /wp-admin/admin.php?page=wpdevhub-dlm-links | 823 | 2.19 | 24.89 | 25.10 |
Settings /wp-admin/admin.php?page=wpdevhub-dlm-settings | 815 | 1.68 | 28.49 | 29.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,452 | 2,222 | 6,373 |
CSS | 1 | 105 | 29 | 763 |
JavaScript | 3 | 127 | 175 | 636 |
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 code | 0.30 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 448 | |
▷ Static methods | 298 | 66.52% |
▷ Public methods | 409 | 91.29% |
▷ Protected methods | 36 | 8.04% |
▷ Private methods | 3 | 0.67% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 248 | |
▷ Global constants | 5 | 2.02% |
▷ Class constants | 243 | 97.98% |
▷ Public constants | 243 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/group.png | 2.04KB | 1.52KB | ▼ 25.61% |
images/cog.png | 2.06KB | 1.65KB | ▼ 19.86% |
images/logo_300.png | 14.72KB | 4.28KB | ▼ 70.95% |
images/delete.png | 1.84KB | 1.55KB | ▼ 15.79% |
images/no_saved_objects.png | 69.99KB | 57.68KB | ▼ 17.59% |