Benchmarks
Plugin footprint 83% 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.03MB] [CPU: ▼5.73ms] Passed 4 tests
An overview of server-side resources used by WPTagSanitizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 34.54 ▼8.23 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.46 ▼6.10 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.40 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.96 ▼7.83 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.56 ▲1.04 |
WPTagSanitizer /wp-admin/tools.php?page=WPTagSanitizerAdmin | 3.22 | 32.57 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
WPTagSanitizer_JSONTABLE |
WPTagSanitizer_TRANSFORMTABLE |
db_upgraded |
WPTagSanitizer_MESSAGES |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WPTagSanitizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.68 ▼0.71 | 1.68 ▼0.42 | 38.98 ▼0.29 |
Dashboard /wp-admin | 2,204 ▲19 | 5.83 ▼0.05 | 96.00 ▼8.90 | 37.65 ▼4.88 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 39.81 ▼4.29 | 40.72 ▲5.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.18 ▲0.04 | 669.30 ▼23.64 | 55.98 ▲0.59 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.02 | 99.79 ▼12.21 | 43.73 ▼4.63 |
WPTagSanitizer /wp-admin/tools.php?page=WPTagSanitizerAdmin | 811 | 2.18 | 23.99 | 32.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptagsanitizer/includes/main.php:209
- > PHP Fatal error
Uncaught Error: Class 'WPTagSanitizer' not found in wp-content/plugins/wptagsanitizer/includes/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptagsanitizer/includes/main.php:209
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: twitter
wptagsanitizer/WPTagSanitizer.php 92% from 13 tests
This is the main PHP file of "WPTagSanitizer" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wptagsanitizer.php" instead of "WPTagSanitizer.php")
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
Everything looks great! No dangerous files found in this plugin213 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 77 | 54 | 176 |
JSON | 1 | 0 | 0 | 20 |
Markdown | 1 | 9 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin