90% typing-animation-block

Code Review | Typing Animation Block

WordPress plugin Typing Animation Block scored 90% from 54 tests.

About plugin

  • Plugin page: typing-animation-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: May 19, 2021
  • Number of updates: 9
  • Update frequency: every 61.7 days
  • Top authors: middlewayapproach (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 4,654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.42ms] Passed 4 tests

A check of server-side resources used by Typing Animation Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.62 ▼3.11
Dashboard /wp-admin3.31 ▲0.0144.67 ▼2.47
Posts /wp-admin/edit.php3.36 ▲0.0144.17 ▼2.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.25 ▼17.76
Media Library /wp-admin/upload.php3.24 ▲0.0135.74 ▲2.97

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Typing Animation Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.30 ▼1.062.32 ▲0.1538.76 ▼13.03
Dashboard /wp-admin2,206 ▲214.87 ▼0.04107.18 ▼9.7543.79 ▼1.50
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0038.75 ▼1.4335.46 ▲0.86
Add New Post /wp-admin/post-new.php6,420 ▲4,90621.01 ▲3.48878.44 ▲272.1859.86 ▲12.84
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0198.21 ▲2.7339.81 ▼2.75

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: typing animation, typewriter effect

typing-animation-block/plugin.php 92% from 13 tests

The entry point to "Typing Animation Block" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("typing-animation-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,391 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,439
JavaScript12169388878
PHP2115662
Markdown1308
Sass1003
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected