Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▲1.29ms] Passed 4 tests
Analyzing server-side resources used by WDV One Page Docs - Documentation Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 39.81 ▼3.96 |
Dashboard /wp-admin | 3.47 ▲0.17 | 51.64 ▲0.86 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 53.47 ▲5.14 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 96.90 ▲4.06 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.60 ▲4.19 |
Server storage [IO: ▲9.63MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wdv-one-page-docs/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 72 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wdv_one_page_settings |
wp_wdv_one_page_shortcodes |
New WordPress options |
---|
db_upgraded |
wdv_docs_db_version |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WDV One Page Docs - Documentation Plugin for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲134 | 13.56 ▼0.81 | 5.51 ▲2.98 | 43.76 ▼1.66 |
Dashboard /wp-admin | 2,240 ▲34 | 5.85 ▲0.96 | 104.73 ▼10.78 | 46.09 ▲2.18 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.03 ▼0.00 | 42.36 ▲8.73 | 36.11 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,543 ▲12 | 23.13 ▲0.04 | 645.42 ▲24.74 | 52.05 ▼22.95 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.29 ▲0.11 | 104.32 ▼31.91 | 43.12 ▼12.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_wdv_one_page_settings
- wp_wdv_one_page_shortcodes
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- wdv_docs_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wdv-one-page-docs/admin/partials/wdv-one-page-docs-admin-display.php
- > /wp-content/plugins/wdv-one-page-docs/public/partials/wdv-one-page-docs-public-display.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wdv-one-page-docs/includes/class-wdv-one-page-rest-posts-controller.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/wdv-one-page-docs/public/partials/wdv-one-page-docs-public-wdv-doc-shortcode-display.php:24
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wdv-one-page-docs/public/partials/wdv-one-page-docs-public-wdv-doc-shortcode-display.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wdv-one-page-docs/admin/partials/wdv-one-page-docs-admin-dashboard-display.php:19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wdv-one-page-docs/public/partials/wdv-one-page-docs-public-wdv-docs-shortcode-display.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wdv-one-page-docs/public/partials/wdv-one-page-docs-public-wdv-docs-shortcode-display.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: faq, documentation, document, support, knowledge base...
wdv-one-page-docs/wdv-one-page-docs.php Passed 13 tests
The main PHP script in "WDV One Page Docs - Documentation Plugin for WordPress" version 1.2.2 is automatically included on every request by WordPress
45 characters long description:
A one page documentation plugin for WordPress
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 plugin1,228 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 418 | 970 | 1,034 |
CSS | 6 | 13 | 10 | 117 |
HTML | 3 | 0 | 0 | 45 |
JavaScript | 19 | 8 | 54 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 62 | |
▷ Static methods | 3 | 4.84% |
▷ Public methods | 53 | 85.48% |
▷ Protected methods | 4 | 6.45% |
▷ Private methods | 5 | 8.06% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/img/logo-new.png | 24.33KB | 12.27KB | ▼ 49.58% |
admin/partials/img/logo.png | 26.77KB | 12.42KB | ▼ 53.62% |