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.01MB] [CPU: ▼7.47ms] Passed 4 tests
An overview of server-side resources used by SC-TableOfContents
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.60 ▲0.09 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.33 ▼11.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.54 ▲0.60 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.71 ▼18.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.60 ▲5.12 |
目次&読破時間 /wp-admin/options-general.php?page=sc-toc | 3.23 | 34.67 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
SC-TableOfContents: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.30 ▼0.06 | 1.78 ▼0.04 | 44.33 ▲0.52 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.04 | 98.14 ▲4.79 | 49.02 ▲5.92 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.05 ▼0.02 | 36.11 ▼4.18 | 39.48 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,553 ▲8 | 22.76 ▼0.68 | 681.90 ▲10.86 | 58.27 ▲2.75 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.24 ▲0.03 | 102.35 ▲1.34 | 51.75 ▲8.71 |
目次&読破時間 /wp-admin/options-general.php?page=sc-toc | 911 | 2.32 | 28.54 | 97.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: contents, table of contents, reading time, mokuji
sc-tableofcontents/sc-tableofcontents.php 92% from 13 tests
The main PHP script in "SC-TableOfContents" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 307 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected429 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 45 | 333 |
CSS | 2 | 6 | 6 | 84 |
JavaScript | 1 | 4 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 7.20 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 1 | 8.33% |
▷ Anonymous functions | 11 | 91.67% |
Constants | 37 | |
▷ Global constants | 25 | 67.57% |
▷ Class constants | 12 | 32.43% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected