78% elite-testimonials-slider

Code Review | Elite Testimonials Slider Plugin For WordPress

WordPress plugin Elite Testimonials Slider Plugin For WordPress scored78%from 54 tests.

About plugin

  • Plugin page: elite-testimonial...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Sep 28, 2018
  • Number of updates: 18
  • Update frequency: every 10.8 days
  • Top authors: jannattech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.51MB] [CPU: ▼28.10ms] Passed 4 tests

Analyzing server-side resources used by Elite Testimonials Slider Plugin For WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2743.62 ▼3.88
Dashboard /wp-admin3.32 ▲0.0130.07 ▼25.83
Posts /wp-admin/edit.php3.68 ▲0.3249.74 ▼0.40
Add New Post /wp-admin/post-new.php3.41 ▼2.4838.91 ▼75.57
Media Library /wp-admin/upload.php3.40 ▲0.1727.58 ▼7.13
Testimonial categories /wp-admin/edit-tags.php?taxonomy=etsp-testimonial-category&post_type=etsp-testimonial3.3830.29
Add New Testimonial /wp-admin/post-new.php?post_type=etsp-testimonial3.4137.05
Testimonials /wp-admin/edit.php?post_type=etsp-testimonial3.4329.75
Testimonials Shortcode /wp-admin/edit.php?post_type=etsp-tsm-shortcode3.4330.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Elite Testimonials Slider Plugin For WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲21813.68 ▼0.9311.29 ▲9.5244.77 ▲1.01
Dashboard /wp-admin2,249 ▲584.85 ▼0.05105.75 ▼11.9039.14 ▼8.67
Posts /wp-admin/edit.php2,129 ▲402.01 ▼0.0037.19 ▲0.2735.01 ▲1.59
Add New Post /wp-admin/post-new.php1,566 ▲4723.32 ▲0.16659.31 ▼30.8350.98 ▼3.66
Media Library /wp-admin/upload.php1,431 ▲434.32 ▲0.1898.69 ▼15.1146.26 ▼0.13
Testimonial categories /wp-admin/edit-tags.php?taxonomy=etsp-testimonial-category&post_type=etsp-testimonial1,3002.1325.7128.81
Add New Testimonial /wp-admin/post-new.php?post_type=etsp-testimonial2,4617.75170.8572.58
Testimonials /wp-admin/edit.php?post_type=etsp-testimonial1,1181.9930.7139.13
Testimonials Shortcode /wp-admin/edit.php?post_type=etsp-tsm-shortcode1,0922.0131.7231.37

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=etsp-tsm-shortcode
    • > Notice in wp-content/plugins/elite-testimonials-slider/inc/scripts.php+81
    Trying to get property 'post_type' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=etsp-testimonial
    • > Notice in wp-content/plugins/elite-testimonials-slider/inc/options/meta-box.php+135
    Undefined index: etsp_client_rating
    • > GET request to /wp-admin/post-new.php?post_type=etsp-testimonial
    • > Notice in wp-content/plugins/elite-testimonials-slider/inc/options/meta-box.php+141
    Undefined index: etsp_client_designation
    • > GET request to /wp-admin/post-new.php?post_type=etsp-testimonial
    • > Notice in wp-content/plugins/elite-testimonials-slider/inc/options/meta-box.php+151
    Undefined index: etsp_client_link
    • > GET request to /wp-admin/post-new.php?post_type=etsp-testimonial
    • > Notice in wp-content/plugins/elite-testimonials-slider/inc/options/meta-box.php+661
    Undefined index: testim_meta_box_nonce

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/elite-testimonials-slider/elite-testimonials-slider-plugin-for-wordpress.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/elite-testimonials-slider/inc/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elite-testimonials-slider/inc/options/meta-box.php:17

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Testimonial Shortcode Setting) image not found
  • Screenshots: Add descriptions for screenshots #8, #9 in elite-testimonials-slider/assets to your readme.txt
The official readme.txt is a good inspiration

elite-testimonials-slider/elite-testimonials-slider-plugin-for-wordpress.php 92% from 13 tests

The primary PHP file in "Elite Testimonials Slider Plugin For WordPress" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("elite-testimonials-slider.php" instead of "elite-testimonials-slider-plugin-for-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,019 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP5134641,416
CSS92222854
SVG100685
JavaScript24864

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/user_icon.png7.31KB5.37KB▼ 26.59%