77% epizy-easy-testimonials

Code Review | Easy Testimonials Slider Plugin

WordPress plugin Easy Testimonials Slider Plugin scored77%from 54 tests.

About plugin

  • Plugin page: epizy-easy-testim...
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2021
  • Latest release: May 29, 2023
  • Number of updates: 26
  • Update frequency: every 29.6 days
  • Top authors: saju4wordpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /464 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼20.81ms] Passed 4 tests

An overview of server-side resources used by Easy Testimonials Slider Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.92 ▲7.47
Dashboard /wp-admin3.33 ▼0.0150.71 ▼15.59
Posts /wp-admin/edit.php3.38 ▲0.0348.29 ▼1.27
Add New Post /wp-admin/post-new.php3.12 ▼2.7737.16 ▼73.83
Media Library /wp-admin/upload.php3.26 ▲0.0341.32 ▲7.92
Add New /wp-admin/post-new.php?post_type=testimonial3.1134.74
All Items /wp-admin/edit.php?post_type=testimonial3.3042.31
Settings /wp-admin/edit.php?post_type=testimonial&page=wpetp-settings-page3.2335.15

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Testimonials Slider Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲30213.83 ▼0.4411.87 ▲10.1143.51 ▲1.18
Dashboard /wp-admin2,271 ▲685.04 ▼0.01105.43 ▼2.2039.79 ▼6.02
Posts /wp-admin/edit.php2,155 ▲552.27 ▲0.2341.18 ▼0.8834.90 ▼2.84
Add New Post /wp-admin/post-new.php1,582 ▲5123.43 ▲0.08642.36 ▼29.7835.40 ▼26.85
Media Library /wp-admin/upload.php1,453 ▲564.41 ▲0.15100.31 ▼1.7443.30 ▼1.20
Add New /wp-admin/post-new.php?post_type=testimonial2,2667.72179.8170.35
All Items /wp-admin/edit.php?post_type=testimonial1,1252.2238.2328.58
Settings /wp-admin/edit.php?post_type=testimonial&page=wpetp-settings-page1,1002.6248.4926.84

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/epizy-easy-testimonials/inc/meta-box.php+42
    Undefined index: testi_name
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/epizy-easy-testimonials/inc/meta-box.php+43
    Undefined index: testi_desig
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/epizy-easy-testimonials/inc/meta-box.php+44
    Undefined index: testi_rating

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× 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/epizy-easy-testimonials/inc/functions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epizy-easy-testimonials/inc/wpetp-dynamic-css.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epizy-easy-testimonials/inc/meta-box.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epizy-easy-testimonials/WP-Easy-Testimonials-Plugin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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: These screenshots do not have images: #2 (Back End), #3 (Front End)
Please take inspiration from this readme.txt

epizy-easy-testimonials/WP-Easy-Testimonials-Plugin.php 77% from 13 tests

"Easy Testimonials Slider Plugin" version 2.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("epizy-easy-testimonials.php" instead of "WP-Easy-Testimonials-Plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin5,554 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG1005,028
PHP43374281
CSS526174
JavaScript36671

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin