Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.99ms] Passed 4 tests
A check of server-side resources used by F70 Simple Table of Contents
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.87 ▼4.02 |
Dashboard /wp-admin | 3.34 ▼0.00 | 53.07 ▼11.11 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.40 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.93 ▼14.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.01 ▲5.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for F70 Simple Table of Contents
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.54 | 1.67 ▼0.07 | 43.95 ▲0.90 |
Dashboard /wp-admin | 2,197 ▲20 | 5.57 ▼0.05 | 91.21 ▲0.86 | 40.81 ▲2.00 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▲0.00 | 41.03 ▲2.18 | 36.93 ▲1.91 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,716 | 18.95 ▼4.04 | 915.74 ▲248.26 | 67.69 ▲10.42 |
Media Library /wp-admin/upload.php | 1,396 ▼4 | 4.24 ▲0.03 | 105.74 ▲7.82 | 44.85 ▼2.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: toc, links, table of contents, navigation, indexes
f70-simple-table-of-contents/f70-simple-table-of-contents.php Passed 13 tests
The main PHP script in "F70 Simple Table of Contents" version 1.2.1 is automatically included on every request by WordPress
122 characters long description:
Display a table of contents in your posts by automatically generated from the headings. No Javascript code, simple to use.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected303 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 81 | 44 | 252 |
CSS | 2 | 6 | 0 | 51 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin