88% testimonials

Code Review | Testimonials

WordPress plugin Testimonials scored 88% from 54 tests.

About plugin

  • Plugin page: testimonials
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Dec 1, 2010
  • Latest release: Jul 29, 2015
  • Number of updates: 99
  • Update frequency: every 17.2 days
  • Top authors: chinmoy (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

5,000+ active / 38,674 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼294.17ms] Passed 4 tests

Analyzing server-side resources used by Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0360.97 ▲3.38
Dashboard /wp-admin3.44 ▲0.0336.95 ▼3.90
Posts /wp-admin/edit.php3.66 ▲0.0249.09 ▼4.32
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.59 ▼1,170.45
Media Library /wp-admin/upload.php3.31 ▲0.0232.17 ▲2.01
Add New /wp-admin/post-new.php?post_type=testimonial3.2588.99
Testimonials /wp-admin/edit.php?post_type=testimonial3.3526.97

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,938 ▲18016.16 ▲0.5610.14 ▲3.792.22 ▼0.60
Dashboard /wp-admin2,926 ▲756.22 ▲0.05115.86 ▼15.29180.98 ▲15.88
Posts /wp-admin/edit.php2,724 ▲363.24 ▼0.0072.25 ▼7.49191.52 ▲50.29
Add New Post /wp-admin/post-new.php1,658 ▼3220.53 ▼0.51537.20 ▲91.49207.61 ▲42.50
Media Library /wp-admin/upload.php1,730 ▲325.52 ▲0.04121.44 ▼21.45190.13 ▲0.99
Add New /wp-admin/post-new.php?post_type=testimonial2,9009.90191.87218.94
Testimonials /wp-admin/edit.php?post_type=testimonial1,4012.9457.28111.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/testimonials/cpt.php+59
    Undefined index: testimonials_metabox_nonce

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/testimonials/view/list-three.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/testimonials/testimonials-metabox.php:2
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/testimonials/view/list-two.php on line 2
    • > PHP Warning
      Use of undefined constant TP_PLUGIN_URL - assumed 'TP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials/view/slider/slider-two.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/testimonials/view/slider/slider-three.php:5
    • > PHP Notice
      Undefined variable: testimonials in wp-content/plugins/testimonials/view/list-two.php on line 4
    • > PHP Warning
      Use of undefined constant TP_PLUGIN_URL - assumed 'TP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials/view/slider/slider-one.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/testimonials/view/slider/slider-one.php:9
    • > PHP Notice
      Undefined variable: testimonials in wp-content/plugins/testimonials/view/slider/slider-three.php on line 5
    • > PHP Notice
      Undefined variable: columns in wp-content/plugins/testimonials/view/tp_table.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 your attention:
  • Requires at least: Version format is invalid
The official readme.txt might help

testimonials/testimonials.php 92% from 13 tests

The principal PHP file in "Testimonials" v. 3.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

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 plugin948 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP106844438
CSS24563437
JavaScript2261273

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-right.png0.48KB0.39KB▼ 19.22%
images/testimonials-icon.png0.37KB0.54KB0.00%
images/arrow-left.png0.50KB0.42KB▼ 15.43%
images/testimonials-icon02.png0.39KB0.62KB0.00%