10% auto-scrolling-testimonials

Code Review | Auto Scrolling Testimonials

WordPress plugin Auto Scrolling Testimonials scored10%from 54 tests.

About plugin

  • Plugin page: auto-scrolling-te...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: Sep 9, 2015
  • Number of updates: 29
  • Update frequency: every 16.8 days
  • Top authors: opensourcetech (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,839 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/auto-scrolling-testimonials/auto-scrolling-testimonial.php+185
    Function create_function() is deprecated

Server metrics [RAM: ▼1.86MB] [CPU: ▼60.38ms] Passed 4 tests

Server-side resources used by Auto Scrolling Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.334.78 ▼40.69
Dashboard /wp-admin2.16 ▼1.195.61 ▼59.58
Posts /wp-admin/edit.php2.16 ▼1.206.41 ▼43.75
Add New Post /wp-admin/post-new.php2.16 ▼3.736.49 ▼97.51
Media Library /wp-admin/upload.php2.16 ▼1.075.26 ▼32.36
Add New /wp-admin/post-new.php?post_type=ast_testimonial2.166.18
AST Testimonial /wp-admin/edit.php?post_type=ast_testimonial2.167.72

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Scrolling Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.36 ▼0.082.60 ▲0.9641.91 ▼4.31
Dashboard /wp-admin2,225 ▲485.74 ▲0.0585.91 ▼8.6840.12 ▼5.28
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0539.96 ▲3.6036.61 ▼1.65
Add New Post /wp-admin/post-new.php1,577 ▲4623.43 ▲0.12617.54 ▼56.5455.92 ▼4.19
Media Library /wp-admin/upload.php1,430 ▲304.20 ▼0.03102.39 ▼8.2449.76 ▲4.17
Add New /wp-admin/post-new.php?post_type=ast_testimonial2,5097.73178.7465.10
AST Testimonial /wp-admin/edit.php?post_type=ast_testimonial1,1221.9530.3834.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/auto-scrolling-testimonials/auto-scrolling-testimonial.php+185
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_ast_testimonial_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ast_testimonial
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/auto-scrolling-testimonials/auto-scrolling-testimonial.php+185
    Function create_function() is deprecated

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-scrolling-testimonials/auto-scrolling-testimonial.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: auto scrolling testimonials, vertical auto scrolling, testimonials, auto scrolling

auto-scrolling-testimonials/auto-scrolling-testimonial.php 85% from 13 tests

"Auto Scrolling Testimonials" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 400 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("auto-scrolling-testimonials.php" instead of "auto-scrolling-testimonial.php")

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 plugin367 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16738204
JavaScript131201132
CSS19031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
default-display-on-frontend.png47.80KB19.41KB▼ 59.40%
shortcode.png32.44KB12.98KB▼ 59.99%