Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, 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 tinyTOC
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.22 ▼1.87 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.67 ▼1.61 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.50 ▲2.14 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.18 ▼11.75 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.09 ▲3.33 |
tinyTOC /wp-admin/options-general.php?page=tinytoc/includes/options.php | 3.30 | 34.30 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by tinyTOC
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.10 | 1.93 ▲0.12 | 42.22 ▼4.13 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.04 | 93.69 ▲0.58 | 38.64 ▼4.58 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.96 ▼0.03 | 38.00 ▲0.34 | 32.87 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.27 ▲0.25 | 674.84 ▼12.88 | 54.28 ▲0.74 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.23 ▲0.11 | 97.04 ▼15.11 | 47.67 ▼1.02 |
tinyTOC /wp-admin/options-general.php?page=tinytoc/includes/options.php | 875 | 2.04 | 23.32 | 28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinytoc/includes/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tinytoc/tinytoc.php:30
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: headings, shortcode, toc, table of contents, widget
tinytoc/tinytoc.php Passed 13 tests
The main PHP file in "tinyTOC" ver. 0.8.1 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Automaticly builds a Table of Contents using headings (h1-h6) in post/page/CPT content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin534 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 51 | 488 |
PO File | 1 | 195 | 389 | 46 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 25 | 75.76% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.09% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin