Benchmarks
Plugin footprint 65% 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.89MB] [CPU: ▼37.10ms] Passed 4 tests
A check of server-side resources used by WP TocJS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 25.89 ▼15.90 |
Dashboard /wp-admin | 3.06 ▼0.29 | 26.05 ▼31.28 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 24.10 ▼21.99 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 24.24 ▼79.24 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 23.06 ▼11.09 |
WP TocJS /wp-admin/options-general.php?page=wptjs-setting | 3.06 | 23.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP TocJS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲133 | 13.40 ▼1.31 | 8.14 ▲6.48 | 45.55 ▲2.18 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.04 | 88.66 ▼1.31 | 39.31 ▼1.76 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.04 ▲0.04 | 36.34 ▼1.72 | 33.75 ▲0.53 |
Add New Post /wp-admin/post-new.php | 6,221 ▲4,696 | 26.09 ▲2.94 | 845.58 ▲245.60 | 52.42 ▼52.40 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.04 | 100.70 ▲6.06 | 43.81 ▼1.32 |
WP TocJS /wp-admin/options-general.php?page=wptjs-setting | 930 | 2.13 | 23.60 | 32.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-tocjs/wp-tocjs.php+326
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wptjs-setting
- > Notice in wp-content/plugins/wp-tocjs/wp-tocjs.php+280
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 get_file_data() in wp-content/plugins/wp-tocjs/wp-tocjs.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Screenshots: Screenshot #1 (Quotation sample.) image required
wp-tocjs/wp-tocjs.php Passed 13 tests
"WP TocJS" version 0.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
A WordPress plugin that makes Table of Contents automatically.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected459 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 78 | 37 | 343 |
PO File | 1 | 31 | 38 | 83 |
Sass | 1 | 9 | 0 | 31 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 3 | 10.34% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin