Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.23ms] Passed 4 tests
Server-side resources used by WPDevHub Troubleshooting Guides
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 34.92 ▼9.24 |
Dashboard /wp-admin | 3.46 ▲0.15 | 44.95 ▼2.38 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.76 ▼0.66 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.96 ▼0.62 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.84 ▲1.13 |
All Guides /wp-admin/edit.php?post_type=dtg_quide | 3.43 | 39.96 |
Settings /wp-admin/edit.php?post_type=dtg_quide&page=wpdevhub-dtg-settings | 3.32 | 32.13 |
Tags /wp-admin/edit-tags.php?taxonomy=dtg_guide_tag&post_type=dtg_quide | 3.31 | 31.48 |
Add New /wp-admin/post-new.php?post_type=dtg_quide | 3.54 | 52.73 |
Categories /wp-admin/edit-tags.php?taxonomy=dtg_guide_category&post_type=dtg_quide | 3.31 | 34.71 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
wpdevhub-dtg-db-version |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPDevHub Troubleshooting Guides
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.28 ▼1.10 | 1.55 ▼0.18 | 39.64 ▼1.80 |
Dashboard /wp-admin | 2,252 ▲61 | 5.87 ▼0.22 | 99.33 ▼5.39 | 39.23 ▼2.43 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.03 ▲0.01 | 43.49 ▲6.20 | 37.35 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 17.47 ▼5.81 | 639.69 ▲15.13 | 52.83 ▼6.63 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.25 ▲0.06 | 96.50 ▲0.89 | 43.89 ▲0.78 |
All Guides /wp-admin/edit.php?post_type=dtg_quide | 1,166 | 1.99 | 34.68 | 30.18 |
Settings /wp-admin/edit.php?post_type=dtg_quide&page=wpdevhub-dtg-settings | 874 | 1.71 | 24.23 | 39.44 |
Tags /wp-admin/edit-tags.php?taxonomy=dtg_guide_tag&post_type=dtg_quide | 1,277 | 2.16 | 28.13 | 27.36 |
Add New /wp-admin/post-new.php?post_type=dtg_quide | 2,771 | 7.97 | 172.64 | 68.84 |
Categories /wp-admin/edit-tags.php?taxonomy=dtg_guide_category&post_type=dtg_quide | 1,311 | 2.16 | 27.09 | 27.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- wpdevhub-dtg-db-version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DSCF_DTG_VirtualPages_PageInterface' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/classes/vp/class.DSCF_DTG_VirtualPages_Page.php:10
- > PHP Fatal error
Uncaught Error: Class 'DSCF_DTG_StandardMetaBox' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/classes/class.DSCF_DTG_TroubleshootingGuides_GuideShortCodeMetaBox.php:9
- > PHP Fatal error
Uncaught Error: Class 'DSCF_DTG_StandardMetaBox' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/classes/core/class.DSCF_DTG_StandardMetaBoxAndDbObject.php:9
- > PHP Fatal error
Uncaught Error: Class 'DSCF_DTG_Utilities' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/pages/inc.settings-base.php:10
- > PHP Fatal error
Uncaught Error: Interface 'DSCF_DTG_VirtualPages_ControllerInterface' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/classes/vp/class.DSCF_DTG_VirtualPages_Controller.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function dimbal_add_define() in wp-content/plugins/wpdevhub-troubleshooting-guides/inc/inc.ver.php:4
- > PHP Fatal error
Uncaught Error: Class 'DSCF_DTG_StandardMain' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/classes/class.DSCF_DTG_TroubleshootingGuides_Main.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function dimbal_add_define() in wp-content/plugins/wpdevhub-troubleshooting-guides/inc/inc.env.php:4
- > PHP Fatal error
Uncaught Error: Class 'DSCF_DTG_StandardCustomPostType' not found in wp-content/plugins/wpdevhub-troubleshooting-guides/classes/class.DSCF_DTG_TroubleshootingGuides_Guide.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function dimbal_add_define() in wp-content/plugins/wpdevhub-troubleshooting-guides/inc/inc.env-prod.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: troubleshooting guides help support
wpdevhub-troubleshooting-guides/index.php 92% from 13 tests
The main file in "WPDevHub Troubleshooting Guides" v. 2.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpdevhub-troubleshooting-guides.php" instead of "index.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
There were no executable files found in this plugin7,499 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,416 | 2,091 | 6,080 |
CSS | 2 | 106 | 30 | 783 |
JavaScript | 3 | 127 | 175 | 636 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 26.84 |
▷ 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 | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 441 | |
▷ Static methods | 302 | 68.48% |
▷ Public methods | 402 | 91.16% |
▷ Protected methods | 36 | 8.16% |
▷ Private methods | 3 | 0.68% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 256 | |
▷ Global constants | 4 | 1.56% |
▷ Class constants | 252 | 98.44% |
▷ Public constants | 252 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/document_layout.png | 0.91KB | 1.00KB | 0.00% |
images/bricks.png | 2.18KB | 1.58KB | ▼ 27.33% |
images/award_star_gold_3.png | 1.56KB | 1.49KB | ▼ 4.63% |
images/no_saved_objects.png | 69.99KB | 57.68KB | ▼ 17.59% |
images/page_edit.png | 1.38KB | 1.36KB | ▼ 0.85% |