Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼1.99ms] Passed 4 tests
An overview of server-side resources used by DocuPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 43.74 ▼4.05 |
Dashboard /wp-admin | 3.58 ▲0.23 | 60.32 ▼2.13 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 62.90 ▲15.75 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 90.06 ▼8.62 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 43.92 ▲6.83 |
Add New /wp-admin/post-new.php?post_type=docupress | 6.29 | 86.66 |
Collections /wp-admin/edit-tags.php?taxonomy=docupress_collections&post_type=docupress | 3.49 | 37.82 |
All Articles /wp-admin/edit.php?post_type=docupress | 3.56 | 42.09 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_docupress_collections_widget |
theysaidso_admin_options |
widget_docupress_articles_widget |
widget_docupress_related_articles_widget |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for DocuPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,193 ▲432 | 20.46 ▲6.09 | 6.09 ▲4.13 | 44.08 ▲0.02 |
Dashboard /wp-admin | 2,485 ▲314 | 10.50 ▲4.90 | 249.31 ▲150.00 | 42.17 ▲1.34 |
Posts /wp-admin/edit.php | 2,356 ▲256 | 9.46 ▲7.46 | 91.33 ▲55.30 | 37.32 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6,231 ▲4,696 | 18.73 ▲0.68 | 811.37 ▲197.22 | 38.25 ▼37.28 |
Media Library /wp-admin/upload.php | 1,818 ▲418 | 10.99 ▲6.74 | 147.36 ▲45.79 | 39.45 ▼9.45 |
Add New /wp-admin/post-new.php?post_type=docupress | 6,309 | 20.18 | 815.13 | 35.71 |
Collections /wp-admin/edit-tags.php?taxonomy=docupress_collections&post_type=docupress | 1,548 | 9.20 | 90.37 | 32.47 |
All Articles /wp-admin/edit.php?post_type=docupress | 1,385 | 9.39 | 82.85 | 31.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_docupress_collections_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_docupress_related_articles_widget
- widget_docupress_articles_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/docupress/admin/partials/docupress-admin-display.php
- > /wp-content/plugins/docupress/public/partials/docupress-public-display.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-taxonomies.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/docupress.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/uninstall.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-estimated-reading-time.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-cpt.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/docupress/admin/class-docupress-settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-article-ratings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-metaboxes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/docupress/admin/docupress-helper-functions.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 on the user side
Optimizations
Plugin configuration Passed 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
8 plugin tags: help, kb, support, notes, knowledgebase...
docupress/docupress.php Passed 13 tests
This is the main PHP file of "DocuPress" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
25 characters long description:
Documentation simplified.
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
Success! There were no dangerous files found in this plugin2,068 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 275 | 972 | 861 |
PO File | 4 | 261 | 273 | 682 |
JavaScript | 2 | 43 | 20 | 286 |
CSS | 3 | 54 | 13 | 209 |
SVG | 4 | 8 | 0 | 27 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 21 | |
▷ Named functions | 21 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin