Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.09ms] Passed 4 tests
Server-side resources used by HM Content TOC
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.09 | 37.25 ▼8.96 |
Dashboard /wp-admin | 3.40 ▲0.09 | 42.99 ▼6.67 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.56 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.38 ▼11.44 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.11 ▲3.49 |
HM Content TOC Settings /wp-admin/options-general.php?page=hm-toc-settings | 3.29 | 26.96 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HM Content TOC
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.56 | 1.80 ▲0.05 | 38.86 ▼6.97 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▼0.00 | 110.27 ▼2.84 | 42.63 ▼1.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.03 | 40.93 ▲5.68 | 41.03 ▲9.82 |
Add New Post /wp-admin/post-new.php | 1,552 ▲29 | 18.38 ▼4.49 | 608.22 ▼33.78 | 66.60 ▲17.51 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▼0.03 | 97.49 ▼12.46 | 42.98 ▲0.89 |
HM Content TOC Settings /wp-admin/options-general.php?page=hm-toc-settings | 804 | 2.06 | 28.23 | 31.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
hm-content-toc/hm-content-toc.php 92% from 13 tests
The main file in "HM Content TOC" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 280 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected551 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 138 | 323 | 378 |
PO File | 3 | 38 | 96 | 164 |
Markdown | 1 | 6 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 16 | 72.73% |
▷ Protected methods | 6 | 27.27% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin