Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲5.33MB] [CPU: ▲33.04ms] 75% from 4 tests
An overview of server-side resources used by Joli Table Of Contents
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.33MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.86 ▲5.39 | 74.23 ▲33.47 |
Dashboard /wp-admin | 8.88 ▲5.53 | 88.66 ▲24.12 |
Posts /wp-admin/edit.php | 8.88 ▲5.52 | 91.71 ▲46.69 |
Add New Post /wp-admin/post-new.php | 10.76 ▲4.87 | 122.82 ▲27.89 |
Media Library /wp-admin/upload.php | 8.88 ▲5.65 | 84.01 ▲49.65 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.88 | 71.35 |
Server storage [IO: ▲4.69MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 361 new files
Database: no new tables, 12 new options
New WordPress options |
---|
fs_debug_mode |
theysaidso_admin_options |
joli_toc_rating_time |
joli_toc_gopro_time |
widget_recent-posts |
db_upgraded |
fs_active_plugins |
can_compress_scripts |
widget_recent-comments |
fs_accounts |
... |
Browser metrics Passed 4 tests
Joli Table Of Contents: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲94 | 14.35 ▼0.06 | 1.53 ▼0.26 | 28.37 ▼17.01 |
Dashboard /wp-admin | 2,258 ▲78 | 5.74 ▲0.08 | 98.47 ▼4.03 | 44.78 ▲1.13 |
Posts /wp-admin/edit.php | 2,167 ▲64 | 2.03 ▲0.09 | 44.65 ▲2.18 | 39.16 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6,389 ▲4,853 | 27.67 ▲4.61 | 859.07 ▲178.74 | 38.64 ▼16.67 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.24 ▲0.06 | 101.71 ▲2.41 | 47.09 ▲0.90 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,118 | 1.70 | 28.72 | 30.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/joli-table-of-contents/includes/fs/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_active_plugins
- joli_table_of_contents_settings
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- fs_accounts
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/joli-table-of-contents/joli-table-of-contents.php
- 70× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/joli-table-of-contents/v1/views/admin/user-guide/user-guide.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/joli-table-of-contents/v1/views/public/jolitoc.php:2
- > PHP Notice
Undefined variable: preserve_theme_styles in wp-content/plugins/joli-table-of-contents/views/public/joli-toc-template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-table-of-contents/views/notices/go-pro.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPJoli\\JoliTOC\\JoliApplication' not found in wp-content/plugins/joli-table-of-contents/v1/core/Application.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\ModuleManager\\Feature\\ServiceProviderInterface' not found in wp-content/plugins/joli-table-of-contents/vendor/slugify/Bridge/ZF2/Module.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function JTOC() in wp-content/plugins/joli-table-of-contents/v1/views/admin/post_settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/joli-table-of-contents/v1/vendor/slugify/Bridge/Twig/SlugifyExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'League\\Container\\ServiceProvider\\AbstractServiceProvider' not found in wp-content/plugins/joli-table-of-contents/vendor/slugify/Bridge/League/SlugifyServiceProvider.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-table-of-contents/views/notices/rating.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
joli-table-of-contents/joli-table-of-contents.php Passed 13 tests
The principal PHP file in "Joli Table Of Contents" v. 2.1.1 is loaded by WordPress automatically on each request
127 characters long description:
The most customizable & user friendly Table Of Contents for your website. Works with Gutenberg Block / Shortcode / Auto-insert.
Code Analysis 97% from 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
No dangerous file extensions were detected57,165 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 9,667 | 20,210 | 53,701 |
CSS | 27 | 201 | 35 | 1,310 |
SVG | 16 | 6 | 15 | 747 |
JSON | 1 | 0 | 0 | 699 |
PO File | 1 | 204 | 212 | 506 |
JavaScript | 11 | 34 | 69 | 202 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 42.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 125 | |
▷ Abstract classes | 2 | 1.60% |
▷ Concrete classes | 123 | 98.40% |
▷ Final classes | 0 | 0.00% |
Methods | 1,607 | |
▷ Static methods | 219 | 13.63% |
▷ Public methods | 1,155 | 71.87% |
▷ Protected methods | 26 | 1.62% |
▷ Private methods | 426 | 26.51% |
Functions | 174 | |
▷ Named functions | 147 | 84.48% |
▷ Anonymous functions | 27 | 15.52% |
Constants | 193 | |
▷ Global constants | 102 | 52.85% |
▷ Class constants | 91 | 47.15% |
▷ Public constants | 91 | 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
24 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/themes/modern.png | 7.23KB | 3.52KB | ▼ 51.29% |
v1/assets/admin/img/powered-by-wpjoli-with-title.png | 3.37KB | 1.53KB | ▼ 54.60% |
assets/admin/img/themes/original-dark.png | 7.79KB | 3.69KB | ▼ 52.61% |
includes/fs/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/admin/img/plugins/wpjoli-joli-faq-seo.png | 10.86KB | 5.05KB | ▼ 53.51% |