78% animated-live-wall

Code Review | Animated Live Wall - Photo Animation, Feed Gallery Image Change Animation

WordPress plugin Animated Live Wall - Photo Animation, Feed Gallery Image Change Animation scored78%from 54 tests.

About plugin

  • Plugin page: animated-live-wall
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Oct 20, 2023
  • Number of updates: 61
  • Update frequency: every 28.0 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /93,073 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
Install script ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▲2.45ms] Passed 4 tests

This is a short check of server-side resources used by Animated Live Wall - Photo Animation, Feed Gallery Image Change Animation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5342.83 ▲3.23
Dashboard /wp-admin3.87 ▲0.5653.48 ▲6.39
Posts /wp-admin/edit.php3.92 ▲0.5646.99 ▼3.02
Add New Post /wp-admin/post-new.php6.39 ▲0.4996.52 ▲4.23
Media Library /wp-admin/upload.php3.73 ▲0.4937.93 ▲5.36
Add New /wp-admin/post-new.php?post_type=animated_live_wall4.0149.90
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.9437.23
Docs /wp-admin/edit.php?post_type=animated-live-wall&page=sr-doc-page3.5626.77
All Animated Live Wall /wp-admin/edit.php?post_type=animated_live_wall3.8339.27
Filters /wp-admin/edit.php?post_type=animated-live-wall&page=alw-filter-page3.5625.59

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Animated Live Wall - Photo Animation, Feed Gallery Image Change Animation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.80 ▼0.428.22 ▲6.5942.71 ▲5.75
Dashboard /wp-admin2,260 ▲865.56 ▼0.0186.09 ▲1.7743.01 ▲2.16
Posts /wp-admin/edit.php2,174 ▲772.08 ▲0.0533.95 ▼2.9436.32 ▲2.71
Add New Post /wp-admin/post-new.php1,585 ▲5423.10 ▼0.10601.42 ▼64.5665.99 ▲9.45
Media Library /wp-admin/upload.php1,476 ▲764.29 ▲0.0997.89 ▼11.5645.59 ▼2.92
Add New /wp-admin/post-new.php?post_type=animated_live_wall2,8334.1679.79133.69
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0722.0523.1832.63
Docs /wp-admin/edit.php?post_type=animated-live-wall&page=sr-doc-page280.420.073.50
All Animated Live Wall /wp-admin/edit.php?post_type=animated_live_wall1,1471.9633.6032.81
Filters /wp-admin/edit.php?post_type=animated-live-wall&page=alw-filter-page280.420.083.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/animated-live-wall/class-tgm-plugin-activation.php:2129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/animated-live-wall/include/admin/animated-live-wall-setting.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=animated-live-wall&page=sr-doc-page
    • > Network (severe)
    wp-admin/edit.php?post_type=animated-live-wall&page=sr-doc-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=animated-live-wall&page=alw-filter-page
    • > Network (severe)
    wp-admin/edit.php?post_type=animated-live-wall&page=alw-filter-page - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #3 (Animated grid gallery with Instagram Feed), #4 (Animated grid gallery with Flickr Feed)
Please take inspiration from this readme.txt

animated-live-wall/animated-live-wall.php Passed 13 tests

The main PHP script in "Animated Live Wall - Photo Animation, Feed Gallery Image Change Animation" version 1.1.4 is automatically included on every request by WordPress
113 characters long description:
The Animated Live Wall Gallery is a responsive animated gallery that helps to makes beutiful your WordPress site.

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
There were no executable files found in this plugin35,464 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS151,42442617,104
JavaScript112,4402,0929,105
SVG5004,801
PHP106681,8224,207
PO File1113138247

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity43.12
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods114
▷ Static methods54.39%
▷ Public methods8978.07%
▷ Protected methods2521.93%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/images/light.png23.77KB12.14KB▼ 48.92%
include/admin/img/Instagram_icon.png39.91KB19.11KB▼ 52.13%
include/admin/img/flickr-logo-png-3.png3.19KB1.80KB▼ 43.53%
include/admin/img/masonry.png11.58KB6.41KB▼ 44.61%
assets/lightbox/images/controls.png1.59KB1.67KB0.00%