83% client-testimonials-feedback

Code Review | Client Testimonials Feedback

WordPress plugin Client Testimonials Feedback scored83%from 54 tests.

About plugin

  • Plugin page: client-testimonia...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Mar 3, 2021
  • Number of updates: 10
  • Update frequency: every 60.3 days
  • Top authors: anilankola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.62MB] [CPU: ▼18.65ms] Passed 4 tests

This is a short check of server-side resources used by Client Testimonials Feedback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.63 ▼4.37
Dashboard /wp-admin3.38 ▲0.0851.55 ▼1.39
Posts /wp-admin/edit.php3.43 ▲0.0851.08 ▼11.47
Add New Post /wp-admin/post-new.php3.16 ▼2.7240.82 ▼55.72
Media Library /wp-admin/upload.php3.30 ▲0.0830.59 ▼3.03
All Testimonial /wp-admin/edit.php?post_type=testimonial3.3441.77
Settings /wp-admin/edit.php?post_type=testimonial&page=testimonial-setting3.2731.92
Add New /wp-admin/post-new.php?post_type=testimonial3.1633.50

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Client Testimonials Feedback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲22113.89 ▼0.417.14 ▲4.9844.49 ▼0.41
Dashboard /wp-admin2,261 ▲705.12 ▼0.00101.68 ▼6.0340.00 ▼10.94
Posts /wp-admin/edit.php2,149 ▲572.32 ▲0.3344.81 ▲4.0137.50 ▲2.02
Add New Post /wp-admin/post-new.php1,565 ▲3218.41 ▼4.74630.38 ▼16.4935.90 ▼24.12
Media Library /wp-admin/upload.php1,437 ▲524.50 ▲0.2897.23 ▼7.6740.71 ▼5.07
All Testimonial /wp-admin/edit.php?post_type=testimonial1,1162.2737.2830.99
Settings /wp-admin/edit.php?post_type=testimonial&page=testimonial-setting1,2372.4453.8523.51
Add New /wp-admin/post-new.php?post_type=testimonial2,2397.90168.1967.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/client-testimonials-feedback/client-testimonial-feedback.php+196
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/client-testimonials-feedback/client-testimonial-feedback.php+203
    Undefined index: client_position
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/client-testimonials-feedback/client-testimonial-feedback.php+203
    Trying to access array offset on value of type null

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Requires php: Invalid version format
The official readme.txt might help

client-testimonials-feedback/client-testimonial-feedback.php 85% from 13 tests

"Client Testimonials Feedback" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("client-testimonials-feedback.php" instead of "client-testimonial-feedback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,677 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3848452,145
PHP11314278
CSS3183254

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/images/quote.png2.04KB0.91KB▼ 55.29%
include/images/left-arrow.png1.31KB0.68KB▼ 47.76%
include/images/right-arrow.png1.30KB0.68KB▼ 47.29%