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 gracefully, with no errors
Server metrics [RAM: ▼0.03MB] [CPU: ▼15.28ms] Passed 4 tests
This is a short check of server-side resources used by Trigger Warning Deluxe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.72 ▼2.69 |
Dashboard /wp-admin | 3.42 ▲0.07 | 42.00 ▼17.92 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 43.51 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.55 ▼0.33 | 66.80 ▼38.46 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.12 ▲6.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Trigger Warning Deluxe
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 14.05 ▼0.35 | 8.10 ▲6.26 | 37.86 ▼5.01 |
Dashboard /wp-admin | 2,237 ▲52 | 5.09 ▲0.21 | 111.81 ▼2.29 | 42.69 ▼5.53 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.34 ▲0.28 | 41.52 ▼1.56 | 34.93 ▼5.31 |
Add New Post /wp-admin/post-new.php | 6,272 ▲4,739 | 26.25 ▲3.22 | 887.71 ▲284.02 | 36.43 ▼13.35 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.29 ▲0.08 | 89.32 ▼12.57 | 40.37 ▼3.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/trigger-warning-deluxe/views/common/posttitlewarning.php
- > /wp-content/plugins/trigger-warning-deluxe/views/admin/twd-about.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/trigger-warning-deluxe/views/admin/optionsfield-textarea.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/trigger-warning-deluxe/views/admin/twd-admin.php:4
- > PHP Notice
Undefined variable: values in wp-content/plugins/trigger-warning-deluxe/views/admin/optionsfield-radiobutton.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/trigger-warning-deluxe/plugin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trigger-warning-deluxe/admin-plugin.php:290
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/trigger-warning-deluxe/views/common/postwarning.php:1
- > PHP Notice
Undefined variable: warninglabel in wp-content/plugins/trigger-warning-deluxe/views/common/posttitlewarning.php on line 1
- > PHP Notice
Trying to get property 'has_trigger' of non-object in wp-content/plugins/trigger-warning-deluxe/views/admin/posttriggercolumn.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/trigger-warning-deluxe/views/admin/posttriggereditbox.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/trigger-warning-deluxe/views/admin/optionsfield-checkbox.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: trauma, trigger warning, content rating, sensitivity
trigger-warning-deluxe/plugin.php 92% from 13 tests
"Trigger Warning Deluxe" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("trigger-warning-deluxe.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin627 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 142 | 129 | 528 |
CSS | 2 | 9 | 0 | 66 |
JavaScript | 2 | 4 | 0 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 2 | 3.12% |
▷ Public methods | 61 | 95.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.69% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
There were not PNG files found in your plugin