84% aspiesoft-auto-embed

Code Review | Auto Embed

WordPress plugin Auto Embed scored84%from 54 tests.

About plugin

  • Plugin page: aspiesoft-auto-embed
  • Plugin version: 1.5.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Jul 25, 2023
  • Number of updates: 49
  • Update frequency: every 21.5 days
  • Top authors: aspiesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.66ms] Passed 4 tests

Analyzing server-side resources used by Auto Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1846.58 ▲6.15
Dashboard /wp-admin3.41 ▲0.1146.67 ▲0.89
Posts /wp-admin/edit.php3.53 ▲0.1747.62 ▲0.29
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.09 ▼6.78
Media Library /wp-admin/upload.php3.34 ▲0.1037.97 ▲2.97
Auto Embed /wp-admin/options-general.php?page=aspiesoft-auto-embed3.3839.57

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.76 ▼0.5411.18 ▲9.4440.12 ▼6.29
Dashboard /wp-admin2,207 ▲224.81 ▼0.08139.81 ▲34.7940.17 ▼3.79
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0039.08 ▼0.0735.33 ▼1.66
Add New Post /wp-admin/post-new.php1,517 ▼2717.80 ▼0.39653.71 ▲55.7752.52 ▼1.88
Media Library /wp-admin/upload.php1,392 ▲74.22 ▼0.0696.58 ▼3.8842.21 ▼0.32
Auto Embed /wp-admin/options-general.php?page=aspiesoft-auto-embed1,2582.2067.2438.80

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
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=aspiesoft-auto-embed
    • > Notice in wp-content/plugins/aspiesoft-auto-embed/templates/admin.php+127
    Undefined index: LOCAL_ADDR
    • > GET request to /wp-admin/options-general.php?page=aspiesoft-auto-embed
    • > Notice in wp-content/plugins/aspiesoft-auto-embed/templates/admin.php+127
    Undefined index: LOCAL_PORT

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: dynamic, css, embed, auto, simple...

aspiesoft-auto-embed/aspiesoft-auto-embed.php Passed 13 tests

Analyzing the main PHP file in "Auto Embed" version 1.5.8
84 characters long description:
Easily Embed Dynamic Lazy Loading Youtube Videos And More Simply By Pasting The Url.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,353 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5244871,137
PHP8235110861
CSS4226355

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.29
▷ Minimum class complexity4.00
▷ Maximum class complexity48.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods1224.00%
▷ Public methods4284.00%
▷ Protected methods00.00%
▷ Private methods816.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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