84% wp-countup-js

Code Review | WP CountUP JS

WordPress plugin WP CountUP JS scored84%from 54 tests.

About plugin

  • Plugin page: wp-countup-js
  • Plugin version: 4.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Dec 4, 2021
  • Number of updates: 35
  • Update frequency: every 59.7 days
  • Top authors: RokuMetal (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /20,583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.36ms] Passed 4 tests

Server-side resources used by WP CountUP JS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.92 ▼3.52
Dashboard /wp-admin3.39 ▲0.0448.90 ▼20.20
Posts /wp-admin/edit.php3.50 ▲0.1449.83 ▼1.05
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.50 ▼12.68
Media Library /wp-admin/upload.php3.31 ▲0.0838.16 ▲4.48
CountUP.js /wp-admin/options-general.php?page=countup-js3.2835.45

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

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

Browser metrics Passed 4 tests

WP CountUP JS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.65 ▲0.361.85 ▼0.1243.96 ▼0.25
Dashboard /wp-admin2,199 ▲255.62 ▼0.0089.91 ▼10.8642.03 ▼0.17
Posts /wp-admin/edit.php2,101 ▲12.06 ▲0.0337.42 ▲1.3032.73 ▼2.87
Add New Post /wp-admin/post-new.php6,199 ▲4,66819.33 ▼4.07916.92 ▲270.8537.73 ▼2.35
Media Library /wp-admin/upload.php1,398 ▼54.20 ▼0.0398.06 ▼0.9239.55 ▼4.34
CountUP.js /wp-admin/options-general.php?page=countup-js8832.0521.6727.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-countup-js/includes/required-classes.php
    • > /wp-content/plugins/wp-countup-js/includes/class-wp-cujs.php
    • > /wp-content/plugins/wp-countup-js/includes/class-wp-cujs-shortcode.php
    • > /wp-content/plugins/wp-countup-js/includes/class-wp-cujs-options.php
    • > /wp-content/plugins/wp-countup-js/wp-countup-js.php

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in wp-countup-js/assets to your readme.txt
The official readme.txt might help

wp-countup-js/wp-countup-js.php Passed 13 tests

This is the main PHP file of "WP CountUP JS" version 4.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Display multiple animated counters into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,524 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,7431,4724,118
PHP1193283393
CSS12013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ 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 images were found in this plugin