84% text-typing

Code Review | Text Typing block - Give your texts many typing effects

WordPress plugin Text Typing block - Give your texts many typing effects scored84%from 54 tests.

About plugin

  • Plugin page: text-typing
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 17, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 18
  • Update frequency: every 32.9 days
  • Top authors: charlescormier (83.33%)abuhayat (22.22%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /8,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.93ms] Passed 4 tests

Analyzing server-side resources used by Text Typing block - Give your texts many typing effects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0431.85 ▼6.75
Dashboard /wp-admin3.33 ▲0.0344.41 ▼2.45
Posts /wp-admin/edit.php3.38 ▲0.0344.12 ▲0.06
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.40 ▼6.56
Media Library /wp-admin/upload.php3.26 ▲0.0332.72 ▲0.12

Server storage [IO: ▲0.55MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Text Typing block - Give your texts many typing effects
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.165.63 ▲3.9641.21 ▲1.44
Dashboard /wp-admin2,206 ▲185.86 ▲0.0296.55 ▼4.5240.12 ▼1.35
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.1735.55 ▲0.3234.66 ▲4.59
Add New Post /wp-admin/post-new.php6,191 ▲4,65719.11 ▼4.33822.76 ▲177.7235.09 ▼16.89
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0597.52 ▲0.9140.05 ▼3.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant TTB_PLUGIN_VERSION - assumed 'TTB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/text-typing/dist/editor.asset.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
The official readme.txt might help

text-typing/index.php 92% from 13 tests

"Text Typing block - Give your texts many typing effects" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("text-typing.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected312 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON200174
PO File1386994
PHP2131339
JavaScript3093
CSS2022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin