Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.84ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Table of Contents
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.53 ▼1.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.74 ▲0.90 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.10 ▼2.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.26 ▼16.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.30 ▲5.21 |
Table of Contents Settings /wp-admin/options-general.php?page=toc-setting-admin | 3.22 | 31.76 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate Table of Contents
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲141 | 13.59 ▼0.84 | 4.97 ▲2.79 | 38.59 ▼5.69 |
Dashboard /wp-admin | 2,213 ▲28 | 4.79 ▼1.09 | 103.30 ▲3.75 | 41.05 ▲0.46 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.05 | 35.65 ▼7.00 | 32.65 ▼6.06 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.59 ▲5.44 | 670.14 ▲58.59 | 52.73 ▼0.64 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▼0.07 | 99.33 ▼0.04 | 45.57 ▲3.02 |
Table of Contents Settings /wp-admin/options-general.php?page=toc-setting-admin | 913 | 2.04 | 26.45 | 31.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/table.php on line 10
- > PHP Notice
Undefined variable: args in wp-content/plugins/ultimate-toc/template-parts/template.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/template.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/fixed.php on line 10
- > PHP Notice
Undefined variable: args in wp-content/plugins/ultimate-toc/template-parts/default.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/ultimate-toc/template-parts/template.php:21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/collapse.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/template.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/template.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-toc/template-parts/default.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: wordpress, heading, preg_match, anchor, acf...
ultimate-toc/ultimate-toc.php 85% from 13 tests
"Ultimate Table of Contents" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/lang" does not exist
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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 detected692 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 78 | 268 | 458 |
CSS | 1 | 7 | 4 | 170 |
Markdown | 1 | 23 | 0 | 45 |
JavaScript | 1 | 1 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin