64% testimonials-pro

Code Review | Testimonials Pro

WordPress plugin Testimonials Pro scored64%from 54 tests.

About plugin

  • Plugin page: testimonials-pro
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2012
  • Latest release: Oct 9, 2012
  • Number of updates: 27
  • Update frequency: every 2.0 days
  • Top authors: mitegvg (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,076 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.79MB] [CPU: ▼58.90ms] Passed 4 tests

A check of server-side resources used by Testimonials Pro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.275.71 ▼37.35
Dashboard /wp-admin2.22 ▼1.096.94 ▼46.30
Posts /wp-admin/edit.php2.22 ▼1.147.71 ▼51.31
Add New Post /wp-admin/post-new.php2.22 ▼3.676.29 ▼100.62
Media Library /wp-admin/upload.php2.22 ▼1.017.15 ▼30.61

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 11 new options
New tables
wp_testimonials_pro
New WordPress options
TP_category
TP_MoreText
can_compress_scripts
TP_MoreLink
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
TP_name
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Testimonials Pro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.14 ▼0.232.23 ▲0.5543.04 ▼3.20
Dashboard /wp-admin2,206 ▲325.55 ▼0.1086.17 ▼7.8438.92 ▼8.11
Posts /wp-admin/edit.php2,114 ▲142.01 ▼0.0038.73 ▼2.1434.85 ▼2.09
Add New Post /wp-admin/post-new.php1,538 ▲1023.54 ▲0.43664.11 ▲39.7356.48 ▲8.87
Media Library /wp-admin/upload.php1,411 ▲114.15 ▼0.0693.56 ▼12.8646.76 ▲1.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_testimonials_pro
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_recent-comments
    • TP_MoreText
    • TP_TextLength
    • TP_name
    • can_compress_scripts
    • widget_theysaidso_widget
    • TP_category
    • theysaidso_admin_options
    • db_upgraded
    • TP_MoreLink
    • ...

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/testimonials-pro/testimonials-pro.php:502
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/testimonials-pro/testimonials-pro.php on line 19

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (The sidebar widget.), #2 (The widget back-end.)
You can look at the official readme.txt

testimonials-pro/testimonials-pro.php Passed 13 tests

This is the main PHP file of "Testimonials Pro" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Display testimonials on your website in various ways and dimensions.

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 detected516 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17913435
JavaScript212081

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tp-arrow.png1.20KB0.39KB▼ 67.80%
screenshot-2.png19.75KB6.74KB▼ 65.89%
screenshot-1.png19.21KB6.14KB▼ 68.06%
navigation-20px.png3.40KB0.88KB▼ 74.23%