84% animated-typed-js-shortcode

Code Review | Animated Typed JS Shortcode

WordPress plugin Animated Typed JS Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: animated-typed-js...
  • Plugin version: 2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Aug 12, 2023
  • Number of updates: 7
  • Update frequency: every 159.6 days
  • Top authors: yongkiagustinus (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 7,306 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.48ms] Passed 4 tests

This is a short check of server-side resources used by Animated Typed JS Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.50 ▼1.82
Dashboard /wp-admin3.32 ▲0.0244.16 ▼2.55
Posts /wp-admin/edit.php3.37 ▲0.0247.80 ▼13.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.93 ▼12.15
Media Library /wp-admin/upload.php3.25 ▲0.0235.67 ▼1.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Animated Typed JS Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7014.48 ▲0.252.58 ▲0.3447.84 ▼4.18
Dashboard /wp-admin2,206 ▲155.89 ▲0.9899.02 ▼6.0538.08 ▼7.85
Posts /wp-admin/edit.php2,086 ▼92.03 ▲0.0136.73 ▼39.7232.99 ▼13.15
Add New Post /wp-admin/post-new.php1,535 ▲222.97 ▼0.28656.19 ▼8.9263.63 ▲10.12
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.06100.85 ▼15.0642.05 ▼4.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/animated-typed-js-shortcode/animated-typed-js-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: typography, jquery, animation, shortcode

animated-typed-js-shortcode/animated-typed-js-shortcode.php 92% from 13 tests

The principal PHP file in "Animated Typed JS Shortcode" v. 2.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1185172
JavaScript1091

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin