78% animated-headline

Code Review | Animated Headline

WordPress plugin Animated Headline scored 78% from 54 tests.

About plugin

  • Plugin page: animated-headline
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 13, 2015
  • Latest release: Mar 26, 2018
  • Number of updates: 22
  • Update frequency: every 53.1 days
  • Top authors: anshuln90 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

4,000+ active / 35,432 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.68ms] Passed 4 tests

This is a short check of server-side resources used by Animated Headline
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.93 ▼1.30
Dashboard /wp-admin3.32 ▲0.0247.49 ▼5.89
Posts /wp-admin/edit.php3.37 ▲0.0151.03 ▲3.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.94 ▼3.33
Media Library /wp-admin/upload.php3.24 ▲0.0135.36 ▼0.18
Animated Headline /wp-admin/options-general.php?page=animated-headlines3.2332.03

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Animated Headline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.62 ▼0.788.54 ▲6.6342.64 ▼2.00
Dashboard /wp-admin2,212 ▲244.87 ▲0.00115.15 ▲11.8544.14 ▲0.28
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0439.33 ▲0.1134.92 ▼0.20
Add New Post /wp-admin/post-new.php1,613 ▲7518.06 ▼5.04663.97 ▲76.9250.66 ▼4.43
Media Library /wp-admin/upload.php1,394 ▲124.23 ▼0.0595.67 ▼4.5143.44 ▼1.09
Animated Headline /wp-admin/options-general.php?page=animated-headlines8822.0424.8827.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/animated-headline/inc/settings.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/animated-headline/animated-headline.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

animated-headline/animated-headline.php 92% from 13 tests

"Animated Headline" version 4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)

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
Good job! No executable or dangerous file extensions detected1,399 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS145371,133
PHP33451144
JavaScript12416122

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There were not PNG files found in your plugin