Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼299.20ms] Passed 4 tests
This is a short check of server-side resources used by LBK Table Of Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.10 | 51.21 ▲0.90 |
Dashboard /wp-admin | 3.44 ▲0.04 | 32.42 ▼1.26 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.95 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.05 | 93.52 ▼1,195.19 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 23.32 ▼0.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
LBK Table Of Content: 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 / | 3,768 ▲46 | 16.33 ▲0.63 | 6.77 ▲0.22 | 2.52 ▲0.32 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▲0.04 | 124.58 ▼6.88 | 161.19 ▼6.68 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 62.82 ▼2.26 | 139.54 ▼4.21 |
Add New Post /wp-admin/post-new.php | 1,668 ▼0 | 18.27 ▲0.12 | 398.17 ▼31.37 | 160.47 ▼3.57 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.54 ▲0.01 | 139.70 ▲0.62 | 188.16 ▼4.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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 50% 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 items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lbk-table-of-content/includes/class.admin.php
- > /wp-content/plugins/lbk-table-of-content/includes/admin-options-page.php
- > /wp-content/plugins/lbk-table-of-content/lbk-toc.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (screenshot-1) image missing
lbk-table-of-content/lbk-toc.php 77% from 13 tests
Analyzing the main PHP file in "LBK Table Of Content" version 1.0.2
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lbk-table-of-content.php" instead of "lbk-toc.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin276 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 171 | 200 |
CSS | 1 | 12 | 0 | 62 |
JavaScript | 1 | 8 | 21 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 13 | |
▷ Static methods | 7 | 53.85% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 38.46% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
There were not PNG files found in your plugin