84% muse-ai

Code Review | muse.ai video embedding

WordPress plugin muse.ai video embedding scored84%from 54 tests.

About plugin

  • Plugin page: muse-ai
  • Plugin version: 0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2021
  • Latest release: Apr 11, 2023
  • Number of updates: 14
  • Update frequency: every 41.9 days
  • Top authors: museai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.07ms] Passed 4 tests

A check of server-side resources used by muse.ai video embedding
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.07 ▼11.60
Dashboard /wp-admin3.31 ▼0.0352.84 ▼10.85
Posts /wp-admin/edit.php3.36 ▲0.0149.33 ▼5.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.23 ▼8.08
Media Library /wp-admin/upload.php3.24 ▲0.0138.38 ▲0.89

Server storage [IO: ▲0.01MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for muse.ai video embedding
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.01 ▼0.355.82 ▲4.2240.62 ▼2.31
Dashboard /wp-admin2,202 ▲225.28 ▼0.3099.23 ▲9.6745.41 ▲4.31
Posts /wp-admin/edit.php2,104 ▲12.67 ▲0.6637.32 ▼6.0636.53 ▼1.50
Add New Post /wp-admin/post-new.php1,530 ▲424.00 ▲0.27673.94 ▼17.2359.81 ▼5.93
Media Library /wp-admin/upload.php1,401 ▲14.81 ▲0.59100.44 ▼15.4442.46 ▼6.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/muse-ai/muse-ai.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

muse-ai/muse-ai.php Passed 13 tests

"muse.ai video embedding" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Enable oEmbed and shortcode support for muse.ai video embedding.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1117201

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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