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
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.52ms] Passed 4 tests
A check of server-side resources used by Trust.txt Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.97 ▲2.45 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.77 ▼2.23 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.74 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.55 ▼2.25 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.46 ▲1.74 |
Trust.txt /wp-admin/options-general.php?page=trusttxt-settings | 3.34 | 44.35 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
trusttxt_post |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Trust.txt Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.14 | 4.72 ▲2.96 | 42.54 ▼7.35 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.04 | 106.63 ▲4.86 | 41.17 ▼0.20 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.00 | 38.59 ▲1.54 | 35.09 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 23.13 ▼0.08 | 590.77 ▼94.37 | 47.05 ▼6.86 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▲0.06 | 101.34 ▼9.04 | 41.29 ▼5.00 |
Trust.txt /wp-admin/options-general.php?page=trusttxt-settings | 978 | 3.43 | 72.06 | 35.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- trusttxt_post
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Trusttxt\\add_action() in wp-content/plugins/trust-txt/inc/save.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function Trusttxt\\add_action() in wp-content/plugins/trust-txt/inc/post-type.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function TrustTxt\\add_action() in wp-content/plugins/trust-txt/inc/admin.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: trusttxt
trust-txt/trust-txt.php Passed 13 tests
The primary PHP file in "Trust.txt Manager" version 1.2 is used by WordPress to initiate all plugin functionality
139 characters long description:
Create, manage, and validate your Trust.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+.
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 plugin564 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 102 | 184 | 497 |
JavaScript | 1 | 15 | 3 | 64 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG images were found in this plugin