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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.27ms] Passed 4 tests
Analyzing server-side resources used by Table of Contents Generate Easily
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.93 ▼4.78 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.41 ▼8.55 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.75 ▲1.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.75 ▼0.88 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.86 ▲1.15 |
TOC Generator /wp-admin/options-general.php?page=table-of-contents-generate-easily/table-of-content-generate-easily.php | 3.28 | 33.82 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
toc_generator_options |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Table of Contents Generate Easily
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.75 ▼0.90 | 5.38 ▲3.62 | 43.94 ▼0.31 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.01 | 100.92 ▼4.36 | 36.89 ▼7.14 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.06 ▲0.04 | 39.71 ▲3.79 | 33.86 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6,218 ▲4,685 | 18.94 ▼4.39 | 895.49 ▲213.51 | 51.64 ▼5.81 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.04 | 96.62 ▼5.57 | 42.40 ▼3.90 |
TOC Generator /wp-admin/options-general.php?page=table-of-contents-generate-easily/table-of-content-generate-easily.php | 894 | 2.07 | 27.67 | 27.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- toc_generator_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 | This is a short smoke test looking for 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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: table of contents, toc, toc generator
table-of-contents-generate-easily/table-of-content-generate-easily.php 77% from 13 tests
Analyzing the main PHP file in "Table of Contents Generate Easily" version 1.2
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("3.9" instead of "4.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("table-of-contents-generate-easily.php" instead of "table-of-content-generate-easily.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin362 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 137 | 339 |
CSS | 2 | 0 | 0 | 12 |
JavaScript | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 85.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 5.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin