Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▲1.85ms] Passed 4 tests
Server-side resources used by QuickDocs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.41 ▲2.88 |
Dashboard /wp-admin | 3.70 ▲0.40 | 47.70 ▲0.68 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 50.37 ▲4.84 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 90.44 ▼1.02 |
Media Library /wp-admin/upload.php | 3.56 ▲0.34 | 41.17 ▲9.08 |
Add Article /wp-admin/post-new.php?post_type=wrd_docs | 6.37 | 85.44 |
Settings /wp-admin/edit.php?post_type=wrd_docs&page=quickdocs-settings | 3.55 | 33.84 |
All Articles /wp-admin/edit.php?post_type=wrd_docs | 3.61 | 34.87 |
Topic /wp-admin/edit-tags.php?taxonomy=topic&post_type=wrd_docs | 3.56 | 36.56 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
QuickDocs: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.35 ▼1.33 | 1.71 ▼0.38 | 45.70 ▼5.37 |
Dashboard /wp-admin | 2,258 ▲70 | 4.86 ▼0.17 | 102.23 ▼17.49 | 38.14 ▼9.10 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.03 ▲0.01 | 39.66 ▲2.13 | 34.19 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.40 ▲0.55 | 660.67 ▲19.72 | 53.16 ▲4.61 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.17 ▼0.11 | 109.28 ▲9.46 | 46.83 ▲3.77 |
Add Article /wp-admin/post-new.php?post_type=wrd_docs | 6,521 | 20.57 | 874.93 | 35.34 |
Settings /wp-admin/edit.php?post_type=wrd_docs&page=quickdocs-settings | 1,004 | 2.04 | 24.36 | 25.35 |
All Articles /wp-admin/edit.php?post_type=wrd_docs | 1,115 | 2.00 | 29.94 | 25.48 |
Topic /wp-admin/edit-tags.php?taxonomy=topic&post_type=wrd_docs | 1,338 | 2.17 | 27.35 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/quickdocs/metaboxes/article-state.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function quickdocs\\settings_fields() in wp-content/plugins/quickdocs/templates/partials/settings-home.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/quickdocs/templates/partials/content-article.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function quickdocs\\settings_fields() in wp-content/plugins/quickdocs/templates/partials/settings-design.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/quickdocs/templates/partials/footer.php:15
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/quickdocs/quickdocs.php on line 108
- > PHP Fatal error
Uncaught Error: Call to undefined function quickdocs\\language_attributes() in wp-content/plugins/quickdocs/templates/partials/header.php:16
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quickdocs/quickdocs.php on line 108
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/quickdocs/src/class-metabox.php' (include_path='.:/usr/share/php') in wp-content/plugins/quickdocs/quickdocs.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function quickdocs\\language_attributes() in wp-content/plugins/quickdocs/templates/partials/header.php:16
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: code, document, documentation, coding, guide...
quickdocs/quickdocs.php 92% from 13 tests
This is the main PHP file of "QuickDocs" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin5,483 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 985 | 1,694 | 3,358 |
JavaScript | 5 | 55 | 8 | 985 |
CSS | 2 | 158 | 17 | 956 |
JSON | 2 | 0 | 0 | 92 |
Markdown | 1 | 32 | 0 | 54 |
SVG | 4 | 0 | 0 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 26.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 172 | |
▷ Static methods | 27 | 15.70% |
▷ Public methods | 102 | 59.30% |
▷ Protected methods | 44 | 25.58% |
▷ Private methods | 26 | 15.12% |
Functions | 31 | |
▷ Named functions | 27 | 87.10% |
▷ Anonymous functions | 4 | 12.90% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin