10% actus-animated-tags

Code Review | ACTUS Animated Tags

WordPress plugin ACTUS Animated Tags scored10%from 54 tests.

About plugin

  • Plugin page: actus-animated-tags
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 6, 2022
  • Number of updates: 32
  • Update frequency: every 56.6 days
  • Top authors: actusanima (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,322 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/actus-animated-tags/includes/actus-anit-main.php+118
    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: ▼1.90MB] [CPU: ▼58.87ms] Passed 4 tests

Server-side resources used by ACTUS Animated Tags
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.407.66 ▼41.88
Dashboard /wp-admin2.16 ▼1.196.51 ▼55.75
Posts /wp-admin/edit.php2.16 ▼1.247.76 ▼43.47
Add New Post /wp-admin/post-new.php2.16 ▼3.776.51 ▼94.36
Media Library /wp-admin/upload.php2.16 ▼1.115.68 ▼30.20
ACTUS /wp-admin/admin.php?page=actus-plugins2.167.53

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 13 new options
New WordPress options
can_compress_scripts
ACTUS_ANIT_height
db_upgraded
widget_actus_anit
ACTUS_ANIT_max_font_size
widget_theysaidso_widget
widget_recent-posts
ACTUS_ANIT_density
ACTUS_ANIT_min_font_size
ACTUS_ANIT_background
...

Browser metrics Passed 4 tests

A check of browser resources used by ACTUS Animated Tags
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19314.46 ▲0.172.19 ▲0.2765.73 ▲20.16
Dashboard /wp-admin2,361 ▲1846.08 ▲0.41106.95 ▲10.2870.20 ▲29.23
Posts /wp-admin/edit.php2,289 ▲1893.51 ▲1.5752.10 ▲12.4083.65 ▲44.77
Add New Post /wp-admin/post-new.php1,552 ▲2423.44 ▲0.38586.30 ▼112.0235.72 ▼18.95
Media Library /wp-admin/upload.php1,420 ▲204.07 ▼0.0380.98 ▼36.9777.34 ▲28.00
ACTUS Animated Tags /wp-admin/actus-animated-tags.php260.420.1514.60
ACTUS /wp-admin/admin.php?page=actus-plugins1,0432.9839.3880.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/actus-animated-tags/includes/actus-anit-main.php+118
    Methods with the same name as their class will not be constructors in a future version of PHP; actus_anit has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_actus_anit
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just 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+118
    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+161
    Function create_function() is deprecated
    • > GET request to /wp-admin/admin.php?page=actus-plugins
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in actus_anit is deprecated since version 4.3.0! Use __construct() instead.

SRP 50% from 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
Please take a closer look at the following
  • 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 a shallow check for browser errors
Please fix the following browser 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: animation, actus, jquery, ajax, tags...

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

The main file in "ACTUS Animated Tags" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 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
Everything looks great! No dangerous files found in this plugin1,736 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS310926791
PHP7168166526
JavaScript2170171405
Markdown16014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions16
▷ Named functions16100.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

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.54MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/actus.png21.26KB4.82KB▼ 77.33%
img/gear.png17.08KB2.66KB▼ 84.41%
img/actus_2.png6.77KB4.82KB▼ 28.83%
img/help.png16.13KB1.62KB▼ 89.98%
img/info.png15.77KB1.16KB▼ 92.64%