Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.63MB] [CPU: ▼2.38ms] Passed 4 tests
Analyzing server-side resources used by EnvyDoc - WordPress Plugin for Ultimate Online Documentation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 44.55 ▲3.41 |
Dashboard /wp-admin | 3.94 ▲0.64 | 50.60 ▼0.92 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 54.35 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 88.38 ▼14.03 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 43.29 ▲5.75 |
/wp-admin/admin.php?page=kb_reorder_submenu | 3.89 | 38.83 |
All Docs /wp-admin/admin.php?page=envy-doc-plugin | 3.78 | 38.85 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=envydoc | 3.79 | 38.94 |
Knowledge Base /wp-admin/edit.php?post_type=envydoc-kb | 3.84 | 39.16 |
KB Sections /wp-admin/edit-tags.php?taxonomy=sections&post_type=envydoc-kb | 3.79 | 37.52 |
Settings /wp-admin/admin.php?page=envy_doc_plugin_settings | 3.77 | 36.05 |
Server storage [IO: ▲2.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_envy_doc_related_post_widget_callback |
widget_envy_doc_popular_post_widget_callback |
can_compress_scripts |
theysaidso_admin_options |
widget_envy_doc_widget_function |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EnvyDoc - WordPress Plugin for Ultimate Online Documentation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲254 | 13.84 ▼0.84 | 6.42 ▲4.54 | 47.48 ▲2.13 |
Dashboard /wp-admin | 2,254 ▲66 | 5.15 ▼0.88 | 107.40 ▲1.52 | 39.31 ▼9.94 |
Posts /wp-admin/edit.php | 2,207 ▲115 | 2.28 ▲0.24 | 40.28 ▲1.05 | 39.71 ▲3.78 |
Add New Post /wp-admin/post-new.php | 1,561 ▲40 | 23.23 ▲0.28 | 654.59 ▲16.82 | 57.88 ▲0.54 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 4.33 ▲0.07 | 113.56 ▼0.12 | 48.12 ▲1.07 |
/wp-admin/admin.php?page=kb_reorder_submenu | 884 | 2.09 | 28.21 | 24.55 |
All Docs /wp-admin/admin.php?page=envy-doc-plugin | 897 | 2.15 | 27.59 | 25.17 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=envydoc | 1,322 | 2.11 | 30.09 | 29.75 |
Knowledge Base /wp-admin/edit.php?post_type=envydoc-kb | 1,183 | 2.44 | 33.67 | 32.07 |
KB Sections /wp-admin/edit-tags.php?taxonomy=sections&post_type=envydoc-kb | 1,322 | 2.11 | 31.03 | 29.81 |
Settings /wp-admin/admin.php?page=envy_doc_plugin_settings | 956 | 1.93 | 29.55 | 27.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_envy_doc_related_post_widget_callback
- widget_recent-posts
- widget_envy_doc_widget_function
- theysaidso_admin_options
- widget_envy_doc_popular_post_widget_callback
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=envy_doc_plugin_settings
- > Notice in wp-content/plugins/envydoc/admin/partials/envy-doc-admin-settings.php+57
Undefined variable: envy_doc_page_type_new
- > GET request to /wp-admin/admin.php?page=envy_doc_plugin_settings
- > Notice in wp-content/plugins/envydoc/admin/partials/envy-doc-admin-settings.php+80
Undefined variable: envy_doc_kb_page_type_new
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
Please fix the following items
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/envydoc/includes/widgets/templates/envy-kb-related-post-display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/envydoc/admin/partials/envy-kb-admin-reorder-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/envydoc/public/partials/doc/envy-doc-single-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envydoc/admin/partials/envy-doc-admin-settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/envydoc/admin/partials/envy-doc-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/envydoc/public/partials/kb/envy-kb-public-display.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/envydoc/admin/partials/display/envy-doc-admin-parent-display.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/envydoc/public/partials/envy-doc-public-display.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envydoc/includes/class-envy-kb-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/envydoc/public/partials/kb/envy-kb-single-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: edit, online, trash, category, doc...
envydoc/envy-doc.php 85% from 13 tests
The principal PHP file in "EnvyDoc - WordPress Plugin for Ultimate Online Documentation" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("envydoc.php" instead of "envy-doc.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,514 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 477 | 627 | 4,650 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 5 | 480 | 605 | 1,086 |
CSS | 3 | 7 | 25 | 833 |
JavaScript | 4 | 21 | 10 | 274 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 76 | |
▷ Named functions | 76 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin