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: ▲1.43MB] [CPU: ▲5.48ms] Passed 4 tests
Server-side resources used by Easy Table of Contents
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 43.63 ▼1.03 |
Dashboard /wp-admin | 4.80 ▲1.50 | 53.01 ▲0.56 |
Posts /wp-admin/edit.php | 4.92 ▲1.56 | 60.47 ▲11.34 |
Add New Post /wp-admin/post-new.php | 7.85 ▲1.96 | 107.39 ▲11.04 |
Media Library /wp-admin/upload.php | 4.73 ▲1.50 | 50.74 ▲14.98 |
Table of Contents /wp-admin/options-general.php?page=table-of-contents | 5.03 | 48.48 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 9 new options
New WordPress options |
---|
ez-toc-settings |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_ez_toc_widget_sticky |
widget_ezw_tco |
Browser metrics Passed 4 tests
Easy Table of Contents: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲69 | 14.37 ▲0.14 | 1.62 ▼0.20 | 41.41 ▼6.48 |
Dashboard /wp-admin | 2,233 ▲53 | 5.02 ▼0.65 | 99.18 ▼13.54 | 44.43 ▲1.35 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.55 ▲0.57 | 47.17 ▲2.01 | 35.56 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,772 ▲246 | 23.18 ▲0.19 | 750.34 ▲84.67 | 51.46 ▼1.61 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.57 ▲0.38 | 109.86 ▲12.06 | 47.47 ▲7.71 |
Table of Contents /wp-admin/options-general.php?page=table-of-contents | 4,775 | 3.23 | 141.72 | 94.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- ez-toc-settings
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_ezw_tco
- widget_recent-comments
- db_upgraded
- widget_ez_toc_widget_sticky
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/easy-table-of-contents/includes/deactivate-feedback.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-table-of-contents/includes/inc.plugin-compatibility.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/easy-table-of-contents/includes/Debug.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-table-of-contents/includes/inc.admin-options-page.php:3
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in easy-table-of-contents/assets to your readme.txt
easy-table-of-contents/easy-table-of-contents.php Passed 13 tests
Analyzing the main PHP file in "Easy Table of Contents" version 2.0.59
119 characters long description:
Adds a user friendly and fully automatic way to create and display a table of contents generated from the page content.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15,552 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 2,630 | 2,502 | 11,844 |
CSS | 11 | 395 | 20 | 2,124 |
JavaScript | 15 | 183 | 128 | 1,199 |
PO File | 1 | 129 | 123 | 378 |
XML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 262)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 157.53 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 384.00 |
Average method complexity | 9.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 262.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 4 | 21.05% |
Methods | 335 | |
▷ Static methods | 120 | 35.82% |
▷ Public methods | 278 | 82.99% |
▷ Protected methods | 5 | 1.49% |
▷ Private methods | 52 | 15.52% |
Functions | 87 | |
▷ Named functions | 60 | 68.97% |
▷ Anonymous functions | 27 | 31.03% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/toc-rating.png | 1.20KB | 1.25KB | 0.00% |
assets/offer-gift-icon.png | 19.62KB | 7.99KB | ▼ 59.26% |
assets/eztoc-logo.png | 5.04KB | 5.03KB | 0.21% |
assets/right-tick.png | 1.88KB | 0.71KB | ▼ 62.23% |