84% animated-number-counter

Code Review | Animated Number Counter

WordPress plugin Animated Number Counter scored 84% from 54 tests.

About plugin

  • Plugin page: animated-number-c...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.3.5
  • WordPress version: 5.8.1
  • First release: Jun 27, 2016
  • Latest release: Jul 12, 2016
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: cpcdev84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,227 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.87MB] [CPU: ▼194.90ms] Passed 4 tests

Server-side resources used by Animated Number Counter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼0.966.16 ▼13.80
Dashboard /wp-admin1.79 ▼1.275.18 ▼40.39
Posts /wp-admin/edit.php1.79 ▼1.325.16 ▼47.33
Add New Post /wp-admin/post-new.php1.79 ▼3.654.77 ▼662.50
Media Library /wp-admin/upload.php1.79 ▼1.225.55 ▼29.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Animated Number Counter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,108 ▲51217.11 ▲1.5714.18 ▲3.4548.41 ▼1.85
Dashboard /wp-admin3,071 ▲1406.19 ▲0.20132.80 ▼22.36119.58 ▼0.52
Posts /wp-admin/edit.php2,837 ▲982.88 ▲0.1864.97 ▼3.5791.41 ▲0.53
Add New Post /wp-admin/post-new.php2,086 ▲41416.04 ▼2.83357.08 ▼25.02123.66 ▲7.67
Media Library /wp-admin/upload.php1,890 ▲805.56 ▲0.51125.93 ▼21.49108.92 ▼5.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5663
    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 number_counter_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/animated-number-counter/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 important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: spam, comments

animated-number-counter/plugin.php 92% from 13 tests

The main PHP file in "Animated Number Counter" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("animated-number-counter.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin26 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

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