89% ai-media-studio-by-paradiso

Code Review | AI Media Studio by Paradiso

WordPress plugin AI Media Studio by Paradiso scored89%from 54 tests.

About plugin

  • Plugin page: ai-media-studio-b...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2023
  • Latest release: Apr 10, 2023
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: paradisoai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.02ms] Passed 4 tests

Server-side resources used by AI Media Studio by Paradiso
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.09 ▼6.26
Dashboard /wp-admin3.31 ▲0.0143.30 ▼7.80
Posts /wp-admin/edit.php3.37 ▲0.0145.98 ▲2.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.29 ▼18.49
Media Library /wp-admin/upload.php3.24 ▲0.0133.79 ▼3.51

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

AI Media Studio by Paradiso: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.30 ▼1.051.63 ▼0.1637.73 ▼7.07
Dashboard /wp-admin2,224 ▲365.82 ▲0.93102.74 ▲0.2479.33 ▲34.06
Posts /wp-admin/edit.php2,113 ▲242.02 ▲0.0238.72 ▲2.7435.34 ▼1.20
Add New Post /wp-admin/post-new.php1,536 ▲823.26 ▲4.85708.23 ▲79.2156.10 ▼0.62
Media Library /wp-admin/upload.php1,409 ▲244.23 ▲0.07111.67 ▼25.5846.65 ▲0.04

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt might help

ai-media-studio-by-paradiso/ai-media-studio.php 77% from 13 tests

Analyzing the main PHP file in "AI Media Studio by Paradiso" version 1.0.1
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ai-media-studio-by-paradiso.php" instead of "ai-media-studio.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin139 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11831112
JavaScript10026
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/fav-icon.png1.05KB1.28KB0.00%