Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.50ms] Passed 4 tests
This is a short check of server-side resources used by WP Help Docs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 43.24 ▲6.60 |
Dashboard /wp-admin | 3.46 ▲0.15 | 48.93 ▼2.14 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.06 ▲6.42 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 82.37 ▼9.00 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.82 ▲2.72 |
Server storage [IO: ▲9.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 155 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Help Docs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.00 | 1.75 ▲0.26 | 43.90 ▲3.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.09 | 83.76 ▼0.02 | 39.94 ▲1.13 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.02 | 49.84 ▲9.69 | 44.31 ▲8.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.29 ▲0.30 | 642.51 ▲31.08 | 67.15 ▲6.75 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.28 ▲0.06 | 95.60 ▼8.25 | 41.89 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ilab-docs/classes/Plugin/DocsPlugin.php
- > /wp-content/plugins/ilab-docs/classes/CLI/Command.php
- > /wp-content/plugins/ilab-docs/vendor/michelf/php-markdown/Readme.php
- > /wp-content/plugins/ilab-docs/classes/CLI/Search/SearchCommands.php
- > /wp-content/plugins/ilab-docs/vendor/masterminds/html5/bin/entities.php
- 62× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/ilab-docs/vendor/masterminds/html5/test/HTML5/Parser/TreeBuildingRulesTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Serializer\\RulesInterface' not found in wp-content/plugins/ilab-docs/vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ilab-docs/vendor/teamtnt/tntsearch/tests/support/HighlighterTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ilab-docs/vendor/teamtnt/tntsearch/tests/indexer/TNTIndexerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/ilab-docs/vendor/masterminds/html5/test/HTML5/Parser/FileInputStreamTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/ilab-docs/vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ilab-docs/vendor/teamtnt/tntsearch/tests/spell/JaroWinklerDistanceTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ilab-docs/vendor/teamtnt/tntsearch/tests/classifier/TNTClassifierTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/ilab-docs/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
Uncaught Error: Interface 'TeamTNT\\TNTSearch\\Stemmer\\Stemmer' not found in wp-content/plugins/ilab-docs/vendor/teamtnt/tntsearch/src/Stemmer/ArabicStemmer.php:9
- > 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
5 plugin tags: help, markdown, admin, docs, documentation
ilab-docs/ilab-docs.php 92% from 13 tests
"WP Help Docs" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin24,034 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 2,888 | 4,675 | 17,235 |
HTML | 2 | 1,089 | 56 | 5,268 |
Markdown | 14 | 469 | 0 | 1,128 |
JSON | 5 | 0 | 0 | 279 |
YAML | 3 | 14 | 0 | 87 |
XML | 2 | 1 | 11 | 35 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 1 | 1.19% |
▷ Concrete classes | 83 | 98.81% |
▷ Final classes | 0 | 0.00% |
Methods | 796 | |
▷ Static methods | 106 | 13.32% |
▷ Public methods | 552 | 69.35% |
▷ Protected methods | 162 | 20.35% |
▷ Private methods | 82 | 10.30% |
Functions | 20 | |
▷ Named functions | 5 | 25.00% |
▷ Anonymous functions | 15 | 75.00% |
Constants | 69 | |
▷ Global constants | 4 | 5.80% |
▷ Class constants | 65 | 94.20% |
▷ Public constants | 65 | 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
There were not PNG files found in your plugin