68% image-and-text-animated-headlines

Code Review | Image and text animated headlines

WordPress plugin Image and text animated headlines scored 68% from 54 tests.

About plugin

  • Plugin page: image-and-text-an...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 6, 2018
  • Latest release: Sep 8, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: deimos252 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 784 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.64MB] [CPU: ▲1.61ms] Passed 4 tests

Server-side resources used by Image and text animated headlines
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5043.73 ▲1.26
Dashboard /wp-admin4.05 ▲0.7552.33 ▼1.19
Posts /wp-admin/edit.php4.06 ▲0.7054.90 ▲1.01
Add New Post /wp-admin/post-new.php6.62 ▲0.7392.16 ▲5.36
Media Library /wp-admin/upload.php3.88 ▲0.6542.11 ▲6.01
Animation1 settings /wp-admin/admin.php?page=animaton_1_settings3.9041.47
Animated headlines /wp-admin/admin.php?page=imtah_settings3.8739.94
Animation2 settings /wp-admin/admin.php?page=animaton_2_settings3.9139.50
Animation3 settings /wp-admin/admin.php?page=animaton_3_settings3.9141.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 3 new tables, 36 new options
New tables
wp_imtah_animation1Table
wp_imtah_animation2Table
wp_imtah_animation3Table
New WordPress options
theysaidso_admin_options
imtah_animation1_text1
imtah_animation3_text3
imtah_animation2_text4
imtah_animation3_url
imtah_animation3_font
imtah_animation2_text2
imtah_animation2_text3
imtah_animation3_image_attachment_id2
imtah_animation3_text2
...

Browser metrics Passed 4 tests

A check of browser resources used by Image and text animated headlines
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,137 ▲39115.43 ▲1.168.62 ▲6.8245.10 ▲2.29
Dashboard /wp-admin2,412 ▲2216.63 ▲1.77144.81 ▲27.5242.74 ▲3.37
Posts /wp-admin/edit.php2,329 ▲2403.64 ▲1.6558.40 ▲18.5836.41 ▲0.41
Add New Post /wp-admin/post-new.php1,772 ▲25824.92 ▲7.40599.16 ▼49.4736.39 ▼39.00
Media Library /wp-admin/upload.php1,501 ▲1194.68 ▲0.4794.61 ▼7.6545.77 ▲3.41
Animation1 settings /wp-admin/admin.php?page=animaton_1_settings1,5253.8282.7328.83
Animated headlines /wp-admin/admin.php?page=imtah_settings1,0593.2345.9470.05
Animation2 settings /wp-admin/admin.php?page=animaton_2_settings1,5593.8583.2030.37
Animation3 settings /wp-admin/admin.php?page=animaton_3_settings1,5593.8884.4429.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function unregister_setting was called with an argument that is deprecated since version 4.7.0! $sanitize_callback is deprecated. The callback from register_setting() is used instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_wpb_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation2.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation1.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation3.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation1.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=animaton_3_settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/image-and-text-animated-headlines/js/animation1.js?ver=2017 5:41 Uncaught TypeError: wp.media is not a function
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=animaton_3_settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/image-and-text-animated-headlines/js/animation2.js?ver=2017 6:42 Uncaught TypeError: wp.media is not a function
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=animaton_3_settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/image-and-text-animated-headlines/js/animation3.js?ver=2017 6:42 Uncaught TypeError: wp.media is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg)
The official readme.txt is a good inspiration

image-and-text-animated-headlines/Image-and-text-animated-headlines.php 92% from 13 tests

The main file in "Image and text animated headlines" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-and-text-animated-headlines.php" instead of "Image-and-text-animated-headlines.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
No dangerous file extensions were detected4,025 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP57899753,887
JavaScript43111138

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity38.80
▷ Minimum class complexity14.00
▷ Maximum class complexity124.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods87
▷ Static methods00.00%
▷ Public methods6675.86%
▷ Protected methods2124.14%
▷ Private methods00.00%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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