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.08MB] [CPU: ▼2.83ms] Passed 4 tests
A check of server-side resources used by WP Documentation Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 43.38 ▼0.70 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.08 ▼2.93 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.20 ▲2.24 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.87 ▼9.91 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.59 ▲3.04 |
All Documentations /wp-admin/edit.php?post_type=wp_documentation | 3.35 | 37.81 |
Add New /wp-admin/post-new.php?post_type=wp_documentation | 3.45 | 46.75 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
wp_documentation_version |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Documentation Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.25 ▼1.13 | 1.72 ▼0.35 | 43.75 ▼8.50 |
Dashboard /wp-admin | 2,237 ▲49 | 4.85 ▼0.24 | 97.22 ▼3.82 | 39.67 ▼2.74 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.01 ▲0.01 | 39.16 ▲3.43 | 35.14 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 17.73 ▼5.56 | 591.21 ▼78.44 | 60.38 ▲7.08 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.19 ▲0.01 | 99.06 ▼0.97 | 41.20 ▼2.21 |
All Documentations /wp-admin/edit.php?post_type=wp_documentation | 1,084 | 1.99 | 30.74 | 29.58 |
Settings /wp-admin/class-wp-documentation-admin.php | 26 | 0.44 | 0.10 | 15.56 |
Add New /wp-admin/post-new.php?post_type=wp_documentation | 1,911 | 2.78 | 53.52 | 94.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- wp_documentation_version
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-documentation-lite/public/partials/wp-documentation-public-display.php
- > /wp-content/plugins/wp-documentation-lite/templates/global/wrapper-end.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/wp-documentation-lite/admin/class-wp-documentation-admin-permalink-settings.php:36
- > PHP Fatal error
Uncaught Error: Call to a member function frontend_document_list() on null in wp-content/plugins/wp-documentation-lite/templates/single-wp_documentation/main-documentation-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-documentation-lite/admin/partials/wp_docs.php:2
- > PHP Notice
Undefined variable: callback in wp-content/plugins/wp-documentation-lite/templates/single-wp_documentation/main-documentation-content.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-documentation-lite/templates/content-single-wp_documentation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-documentation-lite/admin/partials/wp_doc_title.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Documentation_Options' not found in wp-content/plugins/wp-documentation-lite/admin/partials/wp_doc_settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/wp-documentation-lite/templates/comments-wp-documentation.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-documentation-lite/templates/loop/content.php:3
- > PHP Notice
Undefined variable: content_width in wp-content/plugins/wp-documentation-lite/templates/single-wp_documentation/main-documentation-content.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/class-wp-documentation-admin.php
- > Network (severe)
wp-admin/class-wp-documentation-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-documentation-lite/wp-documentation-lite.php Passed 13 tests
The main file in "WP Documentation Lite" v. 0.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Creating online documentation has never been this easy!
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
Everything looks great! No dangerous files found in this plugin3,430 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 420 | 828 | 1,483 |
CSS | 7 | 149 | 112 | 1,100 |
JavaScript | 13 | 177 | 133 | 827 |
SVG | 1 | 8 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 3 | 4.41% |
▷ Public methods | 60 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.76% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/default-archive-thumbnail.png | 3.40KB | 1.43KB | ▼ 58.03% |
admin/images/docico.png | 7.15KB | 3.26KB | ▼ 54.48% |
admin/images/update.png | 3.97KB | 1.41KB | ▼ 64.52% |
admin/images/help.png | 8.58KB | 3.63KB | ▼ 57.74% |
admin/images/ui-icons_222222_256x240.png | 6.68KB | 4.20KB | ▼ 37.05% |