Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.16ms] Passed 4 tests
Analyzing server-side resources used by Extended Table of Contents (with nextpage support)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 25.38 ▼13.32 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.06 ▲4.19 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.73 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.75 ▼10.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.99 ▲2.76 |
Extended-ToC /wp-admin/plugins.php?page=extended_toc | 3.25 | 30.33 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Extended Table of Contents (with nextpage support): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.45 ▼0.35 | 1.93 ▲0.38 | 44.30 ▲2.42 |
Dashboard /wp-admin | 2,201 ▲21 | 5.52 ▼0.10 | 92.76 ▲8.66 | 36.93 ▼7.07 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.98 ▼0.04 | 35.26 ▼0.79 | 35.09 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.31 ▼0.22 | 682.15 ▲0.80 | 55.96 ▲1.22 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▲0.01 | 110.49 ▲8.89 | 48.52 ▲1.25 |
Extended-ToC /wp-admin/plugins.php?page=extended_toc | 1,073 | 2.03 | 29.21 | 28.03 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=extended_toc
- > Notice in wp-content/plugins/extended-table-of-contents-with-nextpage-support/extended-toc.php+150
Undefined variable: msg
- 3 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=extended_toc
- > Notice in wp-content/plugins/extended-table-of-contents-with-nextpage-support/extended-toc.php+158
Undefined index: tab
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/extended-table-of-contents-with-nextpage-support/extended-toc.php:47
- > 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 on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Table of Contents after a preamble), #2 (The options panel found under Plugins > Extended-ToC), #3 (Markup example within the post content)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== extended-table-of-contents-with-nextpage-support ===
)
extended-table-of-contents-with-nextpage-support/extended-toc.php 85% from 13 tests
The primary PHP file in "Extended Table of Contents (with nextpage support)" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("extended-table-of-contents-with-nextpage-support.php" instead of "extended-toc.php")
- Description: The description should be shorter than 140 characters (currently 379 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
Everything looks great! No dangerous files found in this plugin480 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 103 | 65 | 382 |
CSS | 2 | 13 | 0 | 60 |
PO File | 1 | 13 | 26 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 55.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 45.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 19.68KB | 8.49KB | ▼ 56.88% |
screenshot-1.png | 71.67KB | 28.62KB | ▼ 60.07% |
screenshot-3.png | 44.16KB | 25.14KB | ▼ 43.08% |