Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼1.94ms] Passed 4 tests
A check of server-side resources used by Sticky TOC - Advance Table Of Contents
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 38.22 ▲0.01 |
Dashboard /wp-admin | 3.73 ▲0.38 | 52.15 ▼10.79 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 56.93 ▲5.82 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 94.29 ▼0.87 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.52 ▲3.90 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpig_custom_css |
wpig_settings |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
wpig_adv_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Sticky TOC - Advance Table Of Contents
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲334 | 15.46 ▲1.17 | 7.25 ▲5.61 | 40.32 ▼4.73 |
Dashboard /wp-admin | 2,356 ▲165 | 6.63 ▲1.51 | 132.83 ▲31.98 | 89.14 ▲45.48 |
Posts /wp-admin/edit.php | 2,277 ▲191 | 3.49 ▲1.48 | 55.21 ▲18.57 | 64.75 ▲32.77 |
Add New Post /wp-admin/post-new.php | 1,694 ▲175 | 22.62 ▼0.67 | 650.03 ▼8.83 | 39.26 ▼8.70 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.35 ▲0.04 | 91.87 ▼3.66 | 76.48 ▲31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- wpig_custom_css
- wpig_adv_settings
- wpig_settings
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'WPIG_PATH/includes/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/sticky-toc-advance-table-of-contents/includes/wpig-settings.php on line 9
- > PHP Warning
Use of undefined constant WPIG_PATH - assumed 'WPIG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sticky-toc-advance-table-of-contents/includes/wpig-settings.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_index_generator\\plugin_dir_path() in wp-content/plugins/sticky-toc-advance-table-of-contents/sticky-toc-advance-table-of-contents.php:18
- > PHP Warning
require_once(WPIG_PATH/includes/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/sticky-toc-advance-table-of-contents/includes/wpig-settings.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in sticky-toc-advance-table-of-contents/assets to your readme.txt
sticky-toc-advance-table-of-contents/sticky-toc-advance-table-of-contents.php 85% from 13 tests
This is the main PHP file of "Sticky TOC - Advance Table Of Contents" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 194 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,815 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 297 | 285 | 1,244 |
CSS | 3 | 33 | 7 | 387 |
JavaScript | 3 | 35 | 6 | 184 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 8 | 14.55% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/menu-icon.png | 16.06KB | 1.08KB | ▼ 93.30% |
assets/logo.png | 15.72KB | 0.98KB | ▼ 93.77% |
assets/menu.png | 9.90KB | 6.18KB | ▼ 37.60% |