10% full-trust

Code Review | Full Trust

WordPress plugin Full Trust scored10%from 54 tests.

About plugin

  • Plugin page: full-trust
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2021
  • Latest release: Mar 25, 2023
  • Number of updates: 8
  • Update frequency: every 63.3 days
  • Top authors: hikeorders30 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.38 ▼0.22
Dashboard /wp-admin3.31 ▲0.0044.01 ▼12.56
Posts /wp-admin/edit.php3.36 ▲0.0045.22 ▲1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.58 ▼9.28
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.51 ▼0.874.17 ▲2.3442.60 ▼0.72
Dashboard /wp-admin2,206 ▲154.82 ▼1.06109.08 ▲3.9242.27 ▲0.11
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0341.39 ▲4.1135.29 ▲0.70
Add New Post /wp-admin/post-new.php1,535 ▼723.57 ▲5.33673.89 ▲74.3655.70 ▼7.78
Media Library /wp-admin/upload.php1,391 ▼04.16 ▲0.0197.59 ▼3.9943.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP13214585306
CSS2289
JavaScript24546

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 code0.10
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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