78% animated-al-list

Code Review | Animated AL List

WordPress plugin Animated AL List scored 78% from 54 tests.

About plugin

  • Plugin page: animated-al-list
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Nov 4, 2015
  • Number of updates: 11
  • Update frequency: every 23.0 days
  • Top authors: alexdtn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,650 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.12ms] Passed 4 tests

A check of server-side resources used by Animated AL List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.82 ▼8.95
Dashboard /wp-admin3.41 ▲0.1144.70 ▼3.47
Posts /wp-admin/edit.php3.46 ▲0.1144.08 ▼7.85
Add New Post /wp-admin/post-new.php5.93 ▲0.0593.26 ▼8.19
Media Library /wp-admin/upload.php3.27 ▲0.0433.65 ▲2.46
Animated AL List Setup /wp-admin/admin.php?page=animated_al_show3.3641.78
Other Products /wp-admin/admin.php?page=animated_al_show_products3.3141.19
Animated AL List /wp-admin/admin.php?page=animated_al_show_about3.3233.82
Animated AL List Info /wp-admin/admin.php?page=animated_al_show_info3.3135.99

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: 2 new tables, 7 new options
New tables
wp_animated_al_list_main
wp_animated_al_list_items
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_animated_al_list_widget
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Animated AL List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.25 ▼1.111.85 ▼0.2240.00 ▼10.22
Dashboard /wp-admin2,237 ▲464.94 ▼0.97111.25 ▲6.8880.16 ▲39.27
Posts /wp-admin/edit.php2,123 ▲342.01 ▼0.0439.18 ▼3.5635.95 ▼0.22
Add New Post /wp-admin/post-new.php1,556 ▲3918.19 ▲0.59700.18 ▲49.2065.88 ▲2.93
Media Library /wp-admin/upload.php1,425 ▲374.17 ▼0.0995.41 ▼4.4175.23 ▲33.18
Animated AL List Setup /wp-admin/admin.php?page=animated_al_show1,3813.8173.95118.10
Other Products /wp-admin/admin.php?page=animated_al_show_products1,0603.4649.3970.82
Animated AL List /wp-admin/admin.php?page=animated_al_show_about1,1523.4842.7960.49
Animated AL List Info /wp-admin/admin.php?page=animated_al_show_info1,3303.3254.4487.40

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_animated_al_list_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | 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
The following issues need your attention
  • 29× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/animated-al-list/admin_classes/models/templates.php
    • > /wp-content/plugins/animated-al-list/front_classes/controllers/main.php
    • > /wp-content/plugins/animated-al-list/inc/controller.class.php
    • > /wp-content/plugins/animated-al-list/inc/actions.php
    • > /wp-content/plugins/animated-al-list/admin_classes/controllers/positions.php
    • > /wp-content/plugins/animated-al-list/users_animated_al_list.php
    • > /wp-content/plugins/animated-al-list/inc/inclusion.php
    • > /wp-content/plugins/animated-al-list/inc/cachedb.class.php
    • > /wp-content/plugins/animated-al-list/admin_classes/models/main_info.php
    • > /wp-content/plugins/animated-al-list/inc/actions_front.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=animated_al_show
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'selectedIndex')" "TypeError: Cannot read properties of undefined (reading 'selectedIndex')\n at fill_effects_selectbox (/wp-admin/admin.php?page=animated_al_show:548:57)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=animated_al_show:565:3)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=animated_al_show
    • > Network (severe)
    wp-content/plugins/animated-al-list/css/images/ui-bg_fine-grain_10_eceadf_60x60.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=animated_al_show
    • > Network (severe)
    wp-content/plugins/animated-al-list/css/images/ui-bg_fine-grain_15_ffffff_60x60.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=animated_al_show
    • > Network (severe)
    wp-content/plugins/animated-al-list/css/images/ui-bg_fine-grain_15_eceadf_60x60.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=animated_al_show_info
    • > Network (severe)
    wp-content/plugins/animated-al-list/css/images/ui-bg_fine-grain_10_f8f7f6_60x60.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=animated_al_show
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'selectedIndex')
    • > GET request to /wp-admin/admin.php?page=animated_al_show_info
    • > Network (severe)
    wp-content/plugins/animated-al-list/css/images/ui-icons_b83400_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (151 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

animated-al-list/animated-al-list.php Passed 13 tests

The main file in "Animated AL List" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
A list of elements (text or image) with animations.

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
There were no executable files found in this plugin3,341 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
CSS580861,647
PHP29368741,604
JavaScript4111390

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.27
Average class complexity6.48
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods138
▷ Static methods85.80%
▷ Public methods138100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/menu_pict.png1.28KB0.44KB▼ 65.52%
images/arrow_left_01.png3.15KB1.60KB▼ 49.32%
images/arrow_right_02.png5.54KB2.79KB▼ 49.69%
images/caption.png5.92KB5.04KB▼ 14.87%
images/arrow_right_01.png3.13KB1.59KB▼ 49.13%