79% client-and-product-testimonials

Code Review | Client and Product Testimonials

WordPress plugin Client and Product Testimonials scored79%from 54 tests.

About plugin

  • Plugin page: client-and-produc...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2016
  • Latest release: Feb 23, 2016
  • Number of updates: 8
  • Update frequency: every 75.5 days
  • Top authors: eherman24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.94MB] [CPU: ▲4.86ms] Passed 4 tests

This is a short check of server-side resources used by Client and Product Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9244.75 ▲9.07
Dashboard /wp-admin4.28 ▲0.9455.15 ▼1.39
Posts /wp-admin/edit.php4.30 ▲0.9549.02 ▲1.16
Add New Post /wp-admin/post-new.php6.88 ▲0.99112.53 ▲10.61
Media Library /wp-admin/upload.php4.20 ▲0.9744.22 ▲11.74
Upgrade to Pro /wp-admin/edit.php?post_type=testimonial&page=client-and-product-testimonial-upgrade4.1138.37
All Testimonials /wp-admin/edit.php?post_type=testimonial4.2544.79
New Testimonial /wp-admin/post-new.php?post_type=testimonial4.2447.75
Settings /wp-admin/edit.php?post_type=testimonial&page=cat_options4.5544.81
Clients /wp-admin/edit-tags.php?taxonomy=testimonial-clients&post_type=testimonial4.1940.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 249 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
cat_options
db_upgraded
widget_capt_list_widget
widget_capt_fade_slider_widget
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Client and Product Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲9313.62 ▼0.841.83 ▼0.2744.28 ▲5.19
Dashboard /wp-admin2,261 ▲704.91 ▲0.06112.84 ▲7.8447.78 ▲1.63
Posts /wp-admin/edit.php2,152 ▲632.34 ▲0.3242.40 ▲6.4432.20 ▼3.72
Add New Post /wp-admin/post-new.php1,569 ▲2723.26 ▲4.98575.15 ▼39.8750.42 ▼5.63
Media Library /wp-admin/upload.php1,440 ▲524.27 ▲0.00102.22 ▲2.2645.52 ▲3.09
Upgrade to Pro /wp-admin/edit.php?post_type=testimonial&page=client-and-product-testimonial-upgrade1,1572.3229.5774.38
All Testimonials /wp-admin/edit.php?post_type=testimonial1,1752.4734.4740.08
New Testimonial /wp-admin/post-new.php?post_type=testimonial2,5998.05171.28144.70
Settings /wp-admin/edit.php?post_type=testimonial&page=cat_options1,3253.3045.5776.54
Clients /wp-admin/edit-tags.php?taxonomy=testimonial-clients&post_type=testimonial1,2922.3226.6528.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_capt_fade_slider_widget
    • widget_capt_list_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > User deprecated in wp-includes/functions.php+5828
    Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.

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
The following issues need your attention
  • 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'args' of non-object in wp-content/plugins/client-and-product-testimonials/lib/admin/metaboxes/partials/star-rating-metabox.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Client_and_Product_Testimonials' not found in wp-content/plugins/client-and-product-testimonials/lib/admin/cpt/testimonial-cpt.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/client-and-product-testimonials/lib/public/shortcodes/testimonial-list-shortcode.php:221
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/client-and-product-testimonials/lib/admin/capt-helpers.php:248
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/client-and-product-testimonials/lib/admin/metaboxes/partials/pro-upsell-metabox-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/client-and-product-testimonials/lib/admin/testimonial-submission/process.testimonial-submissions.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/client-and-product-testimonials/lib/public/widgets/testimonial-list-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/client-and-product-testimonials/lib/admin/upgrade/upgrade-to-pro-page.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/client-and-product-testimonials/lib/admin/metaboxes/partials/star-rating-metabox.php on line 11
    • > PHP Notice
      Undefined index: testimonial-user-url in wp-content/plugins/client-and-product-testimonials/lib/admin/testimonial-submission/process.testimonial-submissions.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: testimonials, product, testimonial, vimeo, clients...

client-and-product-testimonials/client-and-product-testimonials.php Passed 13 tests

The primary PHP file in "Client and Product Testimonials" version 1.0.1 is used by WordPress to initiate all plugin functionality
69 characters long description:
Easily create powerful client and product testimonials for your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin33,485 lines of code in 173 files:
LanguageFilesBlank linesComment linesLines of code
PO File948,87311,78920,306
CSS141,3051,2345,660
PHP391,2452,9825,549
Sass11168231,116
JavaScript13182188824
SVG20130

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.70
▷ Minimum class complexity3.00
▷ Maximum class complexity107.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods242
▷ Static methods249.92%
▷ Public methods23295.87%
▷ Protected methods72.89%
▷ Private methods31.24%
Functions71
▷ Named functions71100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/CAPT-logo-new.png16.87KB6.45KB▼ 61.75%
lib/images/youtube-icon.png2.30KB1.25KB▼ 45.84%
lib/admin/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
lib/images/linkedin.png3.80KB1.37KB▼ 63.93%
lib/admin/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%