74% animated-letter-incrementer

Code Review | Animated Letter Incrementer

WordPress plugin Animated Letter Incrementer scored74%from 54 tests.

About plugin

  • Plugin page: animated-letter-i...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Jun 27, 2016
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: cpcdev84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,102 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.95MB] [CPU: ▼57.48ms] Passed 4 tests

A check of server-side resources used by Animated Letter Incrementer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.81 ▼34.82
Dashboard /wp-admin2.06 ▼1.285.32 ▼57.84
Posts /wp-admin/edit.php2.06 ▼1.295.20 ▼44.91
Add New Post /wp-admin/post-new.php2.06 ▼3.825.28 ▼92.34
Media Library /wp-admin/upload.php2.06 ▼1.174.87 ▼28.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Animated Letter Incrementer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,162 ▲41614.22 ▼0.3910.33 ▲8.6938.29 ▼6.21
Dashboard /wp-admin2,294 ▲1175.73 ▲0.2089.66 ▼2.8938.02 ▼3.92
Posts /wp-admin/edit.php2,196 ▲962.26 ▲0.1734.95 ▼4.6737.22 ▼1.25
Add New Post /wp-admin/post-new.php1,543 ▲1723.21 ▲0.22646.70 ▼12.9234.61 ▼21.14
Media Library /wp-admin/upload.php1,494 ▲974.48 ▲0.27119.55 ▲17.9944.96 ▲0.13

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the letter_incrementer_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/animated-letter-incrementer/plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: spam, comments

animated-letter-incrementer/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Animated Letter Incrementer" version 0.1
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("animated-letter-incrementer.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin59 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin