Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.07ms] Passed 4 tests
A check of server-side resources used by WPjura Table of Contents
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.39 ▲5.89 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.47 ▼1.05 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.54 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.55 ▼7.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.12 ▲3.79 |
Table Of Contents /wp-admin/options-general.php?page=raonline_tableOfContents | 3.23 | 33.79 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
raoTableOfContents |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WPjura Table of Contents
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.47 ▼0.91 | 2.75 ▲0.52 | 37.29 ▼11.22 |
Dashboard /wp-admin | 2,214 ▲26 | 4.86 ▼0.25 | 108.97 ▲11.03 | 37.20 ▼6.87 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.04 ▲0.00 | 35.44 ▼4.31 | 32.91 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.24 ▲4.62 | 636.37 ▲21.18 | 47.42 ▼6.06 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.20 ▼0.07 | 96.21 ▼0.55 | 40.33 ▼7.06 |
Table Of Contents /wp-admin/options-general.php?page=raonline_tableOfContents | 1,467 | 1.78 | 29.38 | 33.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- raoTableOfContents
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
wpjura-table-of-contents/raoTableOfContents.php 85% from 13 tests
Analyzing the main PHP file in "WPjura Table of Contents" version 0.0.17
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpjura-table-of-contents.php" instead of "raoTableOfContents.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,629 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 57 | 681 | 1,394 |
JavaScript | 2 | 9 | 1 | 121 |
CSS | 2 | 6 | 0 | 114 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 247.00 |
▷ Minimum class complexity | 217.00 |
▷ Maximum class complexity | 277.00 |
Average method complexity | 7.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 12 | 17.91% |
▷ Public methods | 56 | 83.58% |
▷ Protected methods | 7 | 10.45% |
▷ Private methods | 4 | 5.97% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/layout2.png | 85.08KB | 39.75KB | ▼ 53.27% |
img/layout1.png | 92.11KB | 39.75KB | ▼ 56.85% |