84% wp-easy-testimonial

Code Review | WordPress Testimonial Plugin - Webriti

WordPress plugin WordPress Testimonial Plugin - Webriti scored84%from 54 tests.

About plugin

  • Plugin page: wp-easy-testimonial
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Aug 16, 2017
  • Number of updates: 7
  • Update frequency: every 6.1 days
  • Top authors: priyanshu.mittal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /34,014 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.79ms] Passed 4 tests

An overview of server-side resources used by WordPress Testimonial Plugin - Webriti
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0227.73 ▼13.63
Dashboard /wp-admin3.44 ▲0.1445.62 ▼1.70
Posts /wp-admin/edit.php3.49 ▲0.1444.26 ▼6.18
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.53 ▼17.66
Media Library /wp-admin/upload.php3.36 ▲0.1439.27 ▲5.37
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_categories&post_type=testimonial3.3637.37
Theme Settings /wp-admin/admin.php?page=etp-settings&tab=theme3.3334.19
Add New /wp-admin/post-new.php?post_type=testimonial3.5449.69
Shortcodes /wp-admin/admin.php?page=wt-shortcode3.4334.80
Testimonial /wp-admin/edit.php?post_type=testimonial3.4136.13
Slider Settings /wp-admin/admin.php?page=etp-settings&tab=slider3.3332.71
Testimonial /wp-admin/admin.php?page=etp-settings3.3331.23

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

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

Browser metrics Passed 4 tests

WordPress Testimonial Plugin - Webriti: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲28113.78 ▼0.886.90 ▲4.6833.47 ▼15.36
Dashboard /wp-admin2,297 ▲1125.07 ▼0.82100.52 ▼0.5442.68 ▲1.09
Posts /wp-admin/edit.php2,185 ▲962.33 ▲0.2736.25 ▼4.0633.68 ▼3.31
Add New Post /wp-admin/post-new.php1,592 ▲5523.39 ▲0.33671.78 ▲93.5938.06 ▼14.92
Media Library /wp-admin/upload.php1,476 ▲884.40 ▲0.15104.12 ▲5.1044.31 ▲2.80
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_categories&post_type=testimonial1,3612.0235.6031.37
Theme Settings /wp-admin/admin.php?page=etp-settings&tab=theme9542.1028.2132.48
Add New /wp-admin/post-new.php?post_type=testimonial2,8388.34172.6777.15
Shortcodes /wp-admin/admin.php?page=wt-shortcode1,4331.9530.7850.89
Testimonial /wp-admin/edit.php?post_type=testimonial1,2202.2833.7028.56
Slider Settings /wp-admin/admin.php?page=etp-settings&tab=slider1,0272.0927.1129.94
Testimonial /wp-admin/admin.php?page=etp-settings1,0402.0628.6230.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • etp_settings
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-easy-testimonial/includes/admin/partials/testimonial-post-meta-manager.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-easy-testimonial/includes/admin/partials/testimonial-shortcode-manager.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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: These screenshots require images: #1 (Default Theme.), #2 (Default Lite Theme), #3 (Default Dark Theme), #4 (Default Shadow Theme), #5 (This is the Slider View Layout.), #6 (This is the General Settings Page.), #7 (Fetured Image Settings.), #8 (Testimonial Button Settings), #9 (CSS Box), #10 (Slider Settings), #11 (Theme Settings)
Please take inspiration from this readme.txt

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

This is the main PHP file of "WordPress Testimonial Plugin - Webriti" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
WordPress Testimonial Plugin is the simplest plugin for displaying testimonials to your WordPress blog or company site.

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
There were no executable files found in this plugin15,966 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
CSS7981084,062
PHP255568013,071
SVG2002,900
JavaScript54939532,407
Sass1434341,768
LESS1434441,758

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods64
▷ Static methods00.00%
▷ Public methods5789.06%
▷ Protected methods00.00%
▷ Private methods710.94%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 1.02MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png123.62KB39.04KB▼ 68.41%
screenshot-6.png75.86KB25.96KB▼ 65.78%
screenshot-10.png67.80KB17.47KB▼ 74.23%
screenshot-9.png40.58KB10.15KB▼ 74.99%
screenshot-8.png48.56KB13.63KB▼ 71.94%