84% css3-rotating-words

Code Review | Animated Rotating Words (Interchanging Random Words in a Sentence)

WordPress plugin Animated Rotating Words (Interchanging Random Words in a Sentence) scored84%from 54 tests.

About plugin

  • Plugin page: css3-rotating-words
  • Plugin version: 5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 53
  • Update frequency: every 55.7 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /21,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Animated Rotating Words (Interchanging Random Words in a Sentence)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.29 ▼4.08
Dashboard /wp-admin3.33 ▼0.0145.69 ▼15.65
Posts /wp-admin/edit.php3.38 ▲0.0344.17 ▼0.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.24 ▼20.40
Media Library /wp-admin/upload.php3.26 ▲0.0335.48 ▲1.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Animated Rotating Words (Interchanging Random Words in a Sentence)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.55 ▼0.801.63 ▼0.1938.74 ▼5.63
Dashboard /wp-admin2,222 ▲345.86 ▲0.98101.31 ▼7.8240.09 ▲0.00
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0334.18 ▼2.3034.57 ▲3.95
Add New Post /wp-admin/post-new.php1,546 ▲2522.99 ▼0.26691.85 ▼11.4754.21 ▲0.17
Media Library /wp-admin/upload.php1,401 ▲134.19 ▲0.0099.03 ▲3.4246.47 ▲2.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/css3-rotating-words/includes/admin-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css3-rotating-words/index.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: typing, animated, css3, rotating, sentence...

css3-rotating-words/index.php 85% from 13 tests

Analyzing the main PHP file in "Animated Rotating Words (Interchanging Random Words in a Sentence)" version 5.5
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("css3-rotating-words.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected8,217 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS663427,580
PHP45227389
JavaScript46988248

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ 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
16 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%
images/rotating-icon.png46.83KB15.69KB▼ 66.50%
admin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
admin/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
admin/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%