Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.75ms] Passed 4 tests
Server-side resources used by WP Docs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 40.00 ▼1.50 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.86 ▼6.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.16 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.53 ▲1.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.55 ▲3.50 |
WP Docs /wp-admin/options-general.php?page=wpdocs | 3.53 | 35.33 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
wpdocs_options |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Docs: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.16 ▼1.20 | 1.66 ▼0.22 | 39.85 ▼6.49 |
Dashboard /wp-admin | 2,213 ▲25 | 4.79 ▼0.20 | 108.67 ▼6.99 | 40.65 ▼5.17 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.01 | 39.87 ▲3.87 | 34.23 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,548 ▲11 | 18.06 ▼5.08 | 605.23 ▼66.22 | 60.36 ▲2.36 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.06 | 94.10 ▲0.58 | 40.46 ▼4.06 |
WP Docs /wp-admin/options-general.php?page=wpdocs | 1,987 | 5.00 | 152.77 | 180.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- wpdocs_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpdocs
- > Notice in wp-content/plugins/wp-docs/inc/common.php+39
Undefined variable: wpdocs_premium_link
- 52 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpdocs
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wp-docs/inc/functions.php+1931
Undefined index: allowed_role
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-docs/index.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-docs/inc/functions.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_docs_whiteflag_memphis_htaccess() in wp-content/plugins/wp-docs/inc/wpdocs_settings.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-docs/inc/common.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=wpdocs
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wpdocs 605 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=wpdocs
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wpdocs 611 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=wpdocs
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wpdocs 618 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=wpdocs
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wpdocs 625 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: memphis-documents-library, gallery, directory, documents, wp docs...
wp-docs/index.php 92% from 13 tests
The entry point to "WP Docs" version 2.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-docs.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected16,181 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,445 |
PHP | 5 | 1,262 | 152 | 2,543 |
CSS | 7 | 148 | 77 | 2,061 |
PO File | 4 | 698 | 1,136 | 1,123 |
JavaScript | 5 | 435 | 160 | 1,009 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 81 | |
▷ Named functions | 78 | 96.30% |
▷ Anonymous functions | 3 | 3.70% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
64 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/filetype-icons/wav.png | 0.80KB | 0.57KB | ▼ 28.50% |
img/filetype-icons/iso.png | 0.68KB | 0.47KB | ▼ 31.53% |
img/filetype-icons/mp3.png | 0.71KB | 0.50KB | ▼ 29.89% |
img/filetype-icons/mov.png | 0.74KB | 0.54KB | ▼ 27.31% |
img/filetype-icons/mpeg.png | 0.76KB | 0.55KB | ▼ 27.45% |