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
This plugin's installer ran successfully
Server metrics [RAM: ▲1.01MB] [CPU: ▲6.29ms] Passed 4 tests
Server-side resources used by Rich Table of Contents
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.03 | 57.87 ▲12.85 |
Dashboard /wp-admin | 4.35 ▲1.05 | 54.44 ▲7.12 |
Posts /wp-admin/edit.php | 4.40 ▲1.05 | 54.73 ▲1.85 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 102.38 ▲4.86 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 45.11 ▲11.32 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
rtoc_category_added |
rtoc_display |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Rich Table of Contents: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.61 ▼0.69 | 5.71 ▲3.81 | 42.09 ▼4.08 |
Dashboard /wp-admin | 2,221 ▲39 | 5.00 ▲0.12 | 105.72 ▲1.07 | 40.02 ▼5.11 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.06 ▲0.09 | 37.37 ▼13.20 | 33.29 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲9 | 23.41 ▲0.23 | 638.62 ▼20.40 | 76.41 ▲25.78 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.17 ▼0.05 | 103.71 ▲1.24 | 42.67 ▲0.15 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- rtoc_category_added
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- rtoc_display
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-table-of-content/include/rtoc_admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-table-of-content/include/rtoc_edit.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-table-of-content/include/rtoc_inline.php:150
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-table-of-content/include/rtoc_userate.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rich-table-of-content/include/rtoc_shortcode.php:2050
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tested up to: Version not formatted correctly
- Requires at least: Version not formatted correctly
- Requires php: Version not formatted correctly
rich-table-of-content/functions.php 92% from 13 tests
Analyzing the main PHP file in "Rich Table of Contents" version 1.3.99
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rich-table-of-content.php" instead of "functions.php")
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
There were no executable files found in this plugin10,129 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 322 | 324 | 6,358 |
CSS | 7 | 73 | 10 | 2,311 |
JavaScript | 9 | 77 | 51 | 969 |
PO File | 1 | 166 | 202 | 471 |
SVG | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 7.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 74 | |
▷ Named functions | 73 | 98.65% |
▷ Anonymous functions | 1 | 1.35% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.35MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/jin/preset6.png | 3.25KB | 1.36KB | ▼ 58.13% |
img/plus.png | 0.21KB | 0.14KB | ▼ 32.38% |
img/design4.png | 4.08KB | 1.83KB | ▼ 55.28% |
img/jin/preset2.png | 2.95KB | 1.18KB | ▼ 59.90% |
img/question.png | 5.66KB | 2.61KB | ▼ 53.90% |