10% actus-animated-tags

Code Review | ACTUS Animated Tags

WordPress plugin ACTUS Animated Tags scored 10% from 54 tests.

About plugin

  • Plugin page: actus-animated-tags
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 5.9.2
  • First release: Jun 22, 2017
  • Latest release: Mar 9, 2019
  • Number of updates: 30
  • Update frequency: every 20.8 days
  • Top authors: actusanima (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 946 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/actus-animated-tags/includes/actus-anit-main.php+81
    Methods with the same name as their class will not be constructors in a future version of PHP; actus_anit has a deprecated constructor

Server metrics [RAM: ▼2.39MB] [CPU: ▼341.34ms] Passed 4 tests

A check of server-side resources used by ACTUS Animated Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼1.224.39 ▼22.71
Dashboard /wp-admin1.94 ▼1.473.96 ▼28.54
Posts /wp-admin/edit.php1.94 ▼1.704.94 ▼30.70
Add New Post /wp-admin/post-new.php1.94 ▼5.034.28 ▼1,278.95
Media Library /wp-admin/upload.php1.94 ▼1.364.62 ▼27.15
ACTUS /wp-admin/admin.php?page=actus-plugins1.944.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options
ACTUS_ANIT_height
ACTUS_ANIT_VERSION
widget_actus_anit
ACTUS_ANIT_max_font_size
ACTUS_ANIT_background
ACTUS_ANIT_density
ACTUS_ANIT_min_font_size

Browser metrics Passed 4 tests

An overview of browser requirements for ACTUS Animated Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,016 ▲27217.26 ▲1.476.18 ▼0.022.28 ▼0.20
Dashboard /wp-admin3,105 ▲2448.16 ▲1.94139.37 ▲2.10182.97 ▲17.81
Posts /wp-admin/edit.php2,953 ▲2595.13 ▲1.8977.91 ▲13.75160.35 ▲13.42
Add New Post /wp-admin/post-new.php1,747 ▲9617.16 ▼2.10390.20 ▼48.01199.27 ▲40.13
Media Library /wp-admin/upload.php1,731 ▲335.64 ▲0.15109.58 ▼42.95201.34 ▲5.48
ACTUS Animated Tags /wp-admin/actus-animated-tags.php260.940.0320.31
ACTUS /wp-admin/admin.php?page=actus-plugins1,4344.1574.05187.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/actus-animated-tags/includes/actus-anit-main.php+81
    Methods with the same name as their class will not be constructors in a future version of PHP; actus_anit has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_actus_anit

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=actus-plugins
    • > Deprecated in wp-content/plugins/actus-animated-tags/includes/actus-anit-main.php+81
    Methods with the same name as their class will not be constructors in a future version of PHP; actus_anit has a deprecated constructor
    • > GET request to /wp-admin/admin.php?page=actus-plugins
    • > Deprecated in wp-content/plugins/actus-animated-tags/includes/actus-anit-main.php+124
    Function create_function() is deprecated
    • > GET request to /wp-admin/admin.php?page=actus-plugins
    • > User deprecated in wp-includes/functions.php+5409
    The called constructor method for WP_Widget in actus_anit is deprecated since version 4.3.0! Use __construct() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/actus-animated-tags/includes/actus-plugins.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/actus-animated-tags.php
    • > Network (severe)
    wp-admin/actus-animated-tags.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: tag cloud, tags, jquery, ajax, animation...

actus-animated-tags/actus-animated-tags.php 92% from 13 tests

The principal PHP file in "ACTUS Animated Tags" v. 1.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,195 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS38926576
PHP7126143391
JavaScript282127214
Markdown16014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.80MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png25.54KB9.00KB▼ 64.78%
img/actus_white_20.png15.42KB0.73KB▼ 95.25%
img/banner-amtn.png80.17KB44.90KB▼ 44.00%
img/banner-aaws.png20.71KB9.84KB▼ 52.49%
img/actus_white_64.png16.75KB2.07KB▼ 87.67%