Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.90ms] Passed 4 tests
A check of server-side resources used by jcwp simple table of contents
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.62 ▼21.12 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.42 ▼8.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 55.45 ▲6.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 102.24 ▲5.64 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.58 ▼0.00 |
JCWP Table Of Contents /wp-admin/options-general.php?page=jcorgtoc-plugin | 3.19 | 35.36 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 18 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
jcorgtoc_position |
jcorgtoc_scroll_element |
jcorgtoc_linkback |
widget_recent-comments |
jcorgtoc_minimize |
jcorgtoc_active |
jcorgtoc_title |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for jcwp simple table of contents
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲160 | 13.68 ▼1.10 | 6.45 ▲3.52 | 42.67 ▼3.47 |
Dashboard /wp-admin | 2,207 ▲1 | 4.90 ▲0.07 | 108.60 ▼2.29 | 41.38 ▼1.88 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.01 | 40.47 ▲3.24 | 35.00 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 22.98 ▼0.04 | 588.10 ▼34.84 | 50.03 ▼2.83 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.19 ▼0.04 | 98.37 ▼6.78 | 42.19 ▼7.53 |
JCWP Table Of Contents /wp-admin/options-general.php?page=jcorgtoc-plugin | 1,213 | 2.05 | 24.49 | 39.20 |
Uninstaller [IO: ✅] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 18 options in the database
- jcorgtoc_linkback
- jcorgtoc_position
- jcorgtoc_parenttagclass
- can_compress_scripts
- jcorgtoc_minimize
- theysaidso_admin_options
- db_upgraded
- jcorgtoc_scroll
- jcorgtoc_duration
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=jcorgtoc-plugin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jcorgtoc-plugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jcwp-simple-table-of-contents/jcwp-simple-table-of-contents.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== jcwp-simple-table-of-contents ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (A screen shot of the options page), #2 (Shows Table of contents in expanded form on left of the screen), #3 (Shows Table of contents minimized)
jcwp-simple-table-of-contents/jcwp-simple-table-of-contents.php Passed 13 tests
The principal PHP file in "jcwp simple table of contents" v. 1.01 is loaded by WordPress automatically on each request
97 characters long description:
This plugin gives options to display "Table of contents" container on your wordpress post or page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected593 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 16 | 301 |
CSS | 2 | 17 | 7 | 162 |
JavaScript | 3 | 20 | 23 | 130 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
active.png | 0.40KB | 0.27KB | ▼ 31.96% |
node.png | 0.20KB | 0.15KB | ▼ 22.93% |
toc.png | 6.72KB | 2.82KB | ▼ 58.10% |
screenshot-3.png | 6.29KB | 2.93KB | ▼ 53.46% |
screenshot-1.png | 53.15KB | 19.42KB | ▼ 63.46% |