Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/full-trust/includes/class-fulltrust.php+106
require_once(wp-content/plugins/full-trust/includes/class-geodeals-loader.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.26ms] Passed 4 tests
Analyzing server-side resources used by Full Trust
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.38 ▼0.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.01 ▼12.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.22 ▲1.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.58 ▼9.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.30 ▲1.60 |
Server storage [IO: ▲0.05MB] [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-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Full Trust
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.51 ▼0.87 | 4.17 ▲2.34 | 42.60 ▼0.72 |
Dashboard /wp-admin | 2,206 ▲15 | 4.82 ▼1.06 | 109.08 ▲3.92 | 42.27 ▲0.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.03 | 41.39 ▲4.11 | 35.29 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.57 ▲5.33 | 673.89 ▲74.36 | 55.70 ▼7.78 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.16 ▲0.01 | 97.59 ▼3.99 | 43.18 ▲1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/full-trust/public/partials/fulltrust-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/full-trust/admin/partials/plugin-fulltrust-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #7 (Display support options) image missing
- Screenshots: Please describe screenshot #0 in full-trust/assets to your readme.txt
- Tags: There are too many tags (19 tag instead of maximum 10)
full-trust/fulltrust.php 77% from 13 tests
"Full Trust" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("full-trust.php" instead of "fulltrust.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
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 plugin321 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 214 | 585 | 306 |
CSS | 2 | 2 | 8 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
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.10 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin