84% truefy-embed

Code Review | Truefy Embed

WordPress plugin Truefy Embed scored84%from 54 tests.

About plugin

  • Plugin page: truefy-embed
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.4-5.9.3
  • WordPress version: 6.3.1
  • First release: May 23, 2022
  • Latest release: Jun 24, 2022
  • Number of updates: 11
  • Update frequency: every 3.5 days
  • Top authors: truefy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /316 total downloads

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 gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.76ms] Passed 4 tests

A check of server-side resources used by Truefy Embed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.79 ▼6.08
Dashboard /wp-admin3.39 ▲0.0553.46 ▼14.68
Posts /wp-admin/edit.php3.44 ▲0.0956.45 ▲8.18
Add New Post /wp-admin/post-new.php5.97 ▲0.0992.57 ▼21.74
Media Library /wp-admin/upload.php3.31 ▲0.0841.70 ▲3.47
Truefy Embed /wp-admin/options-general.php?page=truefy_embed3.2832.48

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options
truefy_embed_api_key
widget_theysaidso_widget
truefy_embed_auto_visible_self_brand_watermarking_enabled
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
truefy_embed_auto_watermarking_enabled
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Truefy Embed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.34 ▲0.202.23 ▲0.5950.20 ▲5.84
Dashboard /wp-admin2,199 ▲225.64 ▲0.0787.12 ▼17.7339.58 ▼3.24
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0539.24 ▲0.0835.59 ▼2.75
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▲0.10733.73 ▲51.0456.96 ▲0.16
Media Library /wp-admin/upload.php1,401 ▼24.10 ▼0.14111.26 ▼7.0647.90 ▲0.19
Truefy Embed /wp-admin/options-general.php?page=truefy_embed9162.1724.7926.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • truefy_embed_api_key
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • truefy_embed_auto_visible_self_brand_watermarking_enabled
    • truefy_embed_auto_watermarking_enabled

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=truefy_embed
    • > Network (severe)
    wp-content/plugins/truefy-embed/assets/Truefy_logo_wp.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: images, watermark, picture, image, image security...

truefy-embed/truefy.php 85% from 13 tests

Analyzing the main PHP file in "Truefy Embed" version 1.1.0
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("truefy-embed.php" instead of "truefy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin487 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121109487

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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