10% easy-testimonial-rotator

Code Review | Easy Testimonial Slider and Form

WordPress plugin Easy Testimonial Slider and Form scored10%from 54 tests.

About plugin

  • Plugin page: easy-testimonial-...
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2016
  • Latest release: Sep 17, 2023
  • Number of updates: 42
  • Update frequency: every 61.9 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /21,109 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/easy-testimonial-rotator/easy-testimonial-rotator.php+665
    file_put_contents(wp-content/uploads/easy-testimonial-rotator/index.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.66MB] [CPU: ▼7.26ms] Passed 4 tests

This is a short check of server-side resources used by Easy Testimonial Slider and Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6744.37 ▼1.03
Dashboard /wp-admin3.99 ▲0.6447.07 ▼14.23
Posts /wp-admin/edit.php4.10 ▲0.7450.03 ▲3.25
Add New Post /wp-admin/post-new.php6.57 ▲0.6888.78 ▼17.03
Media Library /wp-admin/upload.php3.90 ▲0.6738.06 ▲5.03
Slider Settings /wp-admin/admin.php?page=best_testimonial_slider3.9141.12
Preview Slider /wp-admin/admin.php?page=best_testimonial_slider_preview3.9039.57
Form Settings /wp-admin/admin.php?page=best_testimonial_slider_form_settings3.9641.21
Manage Testimonials /wp-admin/admin.php?page=best_testimonial_slider_testimonial_management3.9141.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: 1 new table, 9 new options
New tables
wp_b_testimo_slide
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
best_testimonial_slider_messages
widget_theysaidso_widget
i13_default_form_options
can_compress_scripts
best_testimonial_options
widget_recent-posts

Browser metrics Passed 4 tests

Easy Testimonial Slider and Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.18 ▼1.501.77 ▼0.4842.30 ▼0.48
Dashboard /wp-admin2,241 ▲504.81 ▼0.20105.04 ▼9.8841.53 ▼2.67
Posts /wp-admin/edit.php2,121 ▲322.02 ▼0.0034.77 ▼3.8133.73 ▼2.43
Add New Post /wp-admin/post-new.php1,570 ▲4118.26 ▼4.90601.99 ▼85.8756.71 ▼1.03
Media Library /wp-admin/upload.php1,426 ▲384.13 ▼0.07101.63 ▲5.3342.34 ▼1.08
Slider Settings /wp-admin/admin.php?page=best_testimonial_slider2,0145.54137.3677.31
Preview Slider /wp-admin/admin.php?page=best_testimonial_slider_preview1,1333.6750.7825.70
Form Settings /wp-admin/admin.php?page=best_testimonial_slider_form_settings2,6748.81187.31120.82
Manage Testimonials /wp-admin/admin.php?page=best_testimonial_slider_testimonial_management1,2774.3365.0388.75

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
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_b_testimo_slide
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • best_testimonial_options
    • i13_default_form_options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • best_testimonial_slider_messages

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-testimonial-rotator/easy-testimonial-rotator.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
Please fix the following attributes:
  • Screenshots: Screenshot #17 (Added capabilities future) image required
The official readme.txt is a good inspiration

easy-testimonial-rotator/easy-testimonial-rotator.php Passed 13 tests

This is the main PHP file of "Easy Testimonial Slider and Form" version 1.0.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
This is beautiful responsive testimonial slider plugin for WordPress.Add any number of testimonial from admin panel.

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 detected7,291 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP21,238873,765
JavaScript22796352,144
CSS360801,382

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions2492.31%
▷ Anonymous functions27.69%
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
25 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/quote_new.png1.58KB0.52KB▼ 67.16%
images/quoteclose_new.png0.51KB0.52KB0.00%
images/nf-banner-300x250.png13.11KB5.87KB▼ 55.24%
images/asc.png0.14KB0.12KB▼ 13.79%
images/controls_black.png3.34KB2.38KB▼ 28.75%