84% anyclip-media

Code Review | AnyClip Luminous Studio

WordPress plugin AnyClip Luminous Studio scored84%from 54 tests.

About plugin

  • Plugin page: anyclip-media
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.5-5.5.0
  • WordPress version: 6.3.1
  • First release: Jan 8, 2020
  • Latest release: Aug 25, 2023
  • Number of updates: 16
  • Update frequency: every 83.3 days
  • Top authors: anyclip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /922 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.17ms] Passed 4 tests

This is a short check of server-side resources used by AnyClip Luminous Studio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.92 ▼6.76
Dashboard /wp-admin3.34 ▲0.0453.43 ▲3.19
Posts /wp-admin/edit.php3.39 ▲0.0350.02 ▲1.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.55 ▼11.07
Media Library /wp-admin/upload.php3.26 ▲0.0437.82 ▲4.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AnyClip Luminous Studio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲6613.44 ▼0.951.91 ▼0.0341.09 ▼2.65
Dashboard /wp-admin2,218 ▲335.17 ▼0.73113.53 ▼6.5340.04 ▼4.69
Posts /wp-admin/edit.php2,106 ▲172.51 ▲0.5237.05 ▼0.7033.24 ▼1.34
Add New Post /wp-admin/post-new.php6,397 ▲4,85528.50 ▲10.29910.88 ▲260.5939.83 ▼14.70
Media Library /wp-admin/upload.php1,400 ▲124.47 ▲0.27106.29 ▲2.7449.76 ▲4.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/anyclip-media/anyclip-media.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-recommended-classic-editor.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-video-block.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-recommended-block.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-video-classic-editor.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-media-block.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-media-const.php
    • > /wp-content/plugins/anyclip-media/inc/anyclip-media-classic-editor.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can take inspiration from this readme.txt

anyclip-media/anyclip-media.php 92% from 13 tests

The entry point to "AnyClip Luminous Studio" version 1.3.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,212 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51376871
PHP84821278
CSS112063

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/anyclip-logo.png47.88KB16.89KB▼ 64.73%
css/AnyClip-graystyle.png6.42KB2.73KB▼ 57.44%