84% easy-testimonial

Code Review | Testimonial Slider

WordPress plugin Testimonial Slider scored84%from 54 tests.

About plugin

  • Plugin page: easy-testimonial
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2017
  • Latest release: Jul 25, 2023
  • Number of updates: 30
  • Update frequency: every 78.7 days
  • Top authors: zotabox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,719 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.32ms] Passed 4 tests

This is a short check of server-side resources used by Testimonial Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.24 ▼2.38
Dashboard /wp-admin3.35 ▲0.0547.31 ▲1.16
Posts /wp-admin/edit.php3.40 ▲0.0544.50 ▼4.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.22 ▼3.95
Media Library /wp-admin/upload.php3.28 ▲0.0534.88 ▲4.36

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options
ztb_access_key
ztb_source
widget_recent-comments
theysaidso_admin_options
ztb_status_disconnect
ztb_email
ztb_id
access_key
can_compress_scripts
ztb_status_message
...

Browser metrics Passed 4 tests

A check of browser resources used by Testimonial Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7513.18 ▼1.381.48 ▼0.2743.00 ▲1.75
Dashboard /wp-admin2,228 ▲365.85 ▲0.9595.38 ▼8.1783.12 ▲38.50
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.0335.01 ▼7.1933.66 ▼1.20
Add New Post /wp-admin/post-new.php1,537 ▼623.29 ▲5.00678.43 ▲69.94161.39 ▲107.08
Media Library /wp-admin/upload.php1,404 ▲164.24 ▲0.04100.92 ▼1.1362.95 ▲19.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 14 options
    • db_upgraded
    • widget_recent-posts
    • ztb_id
    • access_key
    • ztb_status_message
    • ztb_status_disconnect
    • ztb_access_key
    • ztb_source
    • ztb_email
    • ztb_domainid
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× 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/easy-testimonial/easy-testimonial.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (EU Cookie Notification Settings), #2 (Display Rules), #3 (Zotabox Dashboard)
Please take inspiration from this readme.txt

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

The primary PHP file in "Testimonial Slider" version 1.1.0 is used by WordPress to initiate all plugin functionality
126 characters long description:
Testimonial Slider display testimonials on your Wordpress website in easy way. 20+ more popular marketing tools also included.

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
Good job! No executable or dangerous file extensions detected501 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS234273
PHP11915188
JavaScript14040

PHP code Passed 2 tests

Analyzing 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.22
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%
Functions10
▷ Named functions10100.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bg_body.png22.84KB9.83KB▼ 56.98%
assets/images/logo-zotabox.png5.45KB2.43KB▼ 55.35%
assets/images/check.png2.96KB0.37KB▼ 87.47%
zotabox.png3.19KB0.44KB▼ 86.31%