84% testimonial-free

Code Review | Real Testimonials

WordPress plugin Real Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: testimonial-free
  • Plugin version: 2.6.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Nov 9, 2023
  • Number of updates: 147
  • Update frequency: every 18.4 days
  • Top authors: shapedplugin (50.34%)rubel_miah (48.3%)Shamimmiashuhagh (2.72%)

Code review

54 tests

User reviews

175 reviews

Install metrics

40,000+ active /836,722 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.80MB] [CPU: ▲12.95ms] Passed 4 tests

An overview of server-side resources used by Real Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.30 ▲1.8353.38 ▲12.90
Dashboard /wp-admin5.14 ▲1.8357.38 ▲7.32
Posts /wp-admin/edit.php5.19 ▲1.8363.34 ▲15.07
Add New Post /wp-admin/post-new.php7.67 ▲1.79116.32 ▲21.18
Media Library /wp-admin/upload.php5.00 ▲1.7749.49 ▲16.50
Help /wp-admin/edit.php?post_type=spt_testimonial&page=tfree_help5.0047.21
Tools /wp-admin/edit.php?post_type=spt_testimonial&page=testimonial_tools5.0170.17
Manage Views /wp-admin/edit.php?post_type=spt_shortcodes5.1655.00
Settings /wp-admin/edit.php?post_type=spt_testimonial&page=spt_settings5.0048.77
All Testimonials /wp-admin/edit.php?post_type=spt_testimonial5.1651.79
Testimonial Forms /wp-admin/edit.php?post_type=spt_testimonial_form4.8137.04
Add New /wp-admin/post-new.php?post_type=spt_testimonial5.2070.55

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 176 new files
Database: no new tables, 13 new options
New WordPress options
testimonial_first_version
testimonial_db_version
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
testimonial_activation_date
sp_testimonial_review_notice_dismiss
widget_tfree_widget
sp_testimonial_pro_options
testimonial_version
...

Browser metrics Passed 4 tests

An overview of browser requirements for Real Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15814.37 ▲0.111.71 ▼0.2228.41 ▼16.30
Dashboard /wp-admin2,316 ▲1385.59 ▼0.0793.82 ▼17.5040.50 ▼3.78
Posts /wp-admin/edit.php2,221 ▲1212.05 ▲0.0840.72 ▲4.5036.26 ▲0.10
Add New Post /wp-admin/post-new.php6,255 ▲4,72718.94 ▼4.07885.83 ▲267.5161.95 ▲8.11
Media Library /wp-admin/upload.php1,525 ▲1254.21 ▼0.0199.97 ▲2.9543.52 ▲3.77
Help /wp-admin/edit.php?post_type=spt_testimonial&page=tfree_help2,00111.36319.43110.83
Tools /wp-admin/edit.php?post_type=spt_testimonial&page=testimonial_tools1,2423.9560.0480.13
Manage Views /wp-admin/edit.php?post_type=spt_shortcodes1,4214.0555.4831.87
Settings /wp-admin/edit.php?post_type=spt_testimonial&page=spt_settings1,3353.6559.2078.48
All Testimonials /wp-admin/edit.php?post_type=spt_testimonial1,4173.6757.4129.43
Testimonial Forms /wp-admin/edit.php?post_type=spt_testimonial_form2,5104.4395.1754.56
Add New /wp-admin/post-new.php?post_type=spt_testimonial2,5938.20188.8889.95

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 13 options
    • db_upgraded
    • theysaidso_admin_options
    • testimonial_activation_date
    • sp_testimonial_review_notice_dismiss
    • widget_recent-posts
    • sp_testimonial_pro_options
    • testimonial_first_version
    • can_compress_scripts
    • testimonial_version
    • testimonial_db_version
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/testimonial-free/src/Frontend/Views/partials/dynamic-style.php on line 177
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/testimonial-free/src/Admin/updates/update-2.6.1.php:6
    • > PHP Notice
      Undefined variable: outline in wp-content/plugins/testimonial-free/src/Frontend/Views/partials/dynamic-style.php on line 28
    • > PHP Notice
      Trying to get property 'max_num_pages' of non-object in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/pagination.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/testimonial-free/src/Admin/updates/update-2.5.5.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/testimonial/designation.php:14
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/testimonial-free/src/Frontend/Views/partials/dynamic-style.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/theme/theme-one.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/grid.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/testimonial-free/src/Frontend/Views/templates/section-title.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt is a good inspiration

testimonial-free/testimonial-free.php 92% from 13 tests

The main PHP script in "Real Testimonials" version 2.6.8 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin19,741 lines of code in 156 files:
LanguageFilesBlank linesComment linesLines of code
PHP921,9303,4609,328
CSS165335985,800
JavaScript88333503,540
SVG39621,068
JSON1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity22.24
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity5.61
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods270
▷ Static methods4817.78%
▷ Public methods26397.41%
▷ Protected methods41.48%
▷ Private methods31.11%
Functions27
▷ Named functions2488.89%
▷ Anonymous functions311.11%
Constants7
▷ Global constants7100.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.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Admin/assets/images/icon-256.png19.95KB4.31KB▼ 78.37%
src/Admin/assets/images/ali_senejani.png12.61KB12.58KB0.22%
src/Admin/Views/Framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
src/Admin/assets/images/sirpa.png10.72KB9.12KB▼ 14.98%