83% bootstrap-multi-language-responsive-testimonials

Code Review | Bootstrap Multi-language Responsive Testimonials

WordPress plugin Bootstrap Multi-language Responsive Testimonials scored83%from 54 tests.

About plugin

  • Plugin page: bootstrap-multi-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2015
  • Latest release: Jul 3, 2020
  • Number of updates: 7
  • Update frequency: every 278.3 days
  • Top authors: augustinfotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,942 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▲4.29ms] Passed 4 tests

This is a short check of server-side resources used by Bootstrap Multi-language Responsive Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1846.81 ▲4.26
Dashboard /wp-admin3.47 ▲0.1756.06 ▲5.30
Posts /wp-admin/edit.php3.57 ▲0.2158.95 ▲10.76
Add New Post /wp-admin/post-new.php6.05 ▲0.1697.05 ▼2.31
Media Library /wp-admin/upload.php3.39 ▲0.1645.94 ▲9.90
Testimonial /wp-admin/edit.php?post_type=testimonial3.4245.21
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial-types&post_type=testimonial3.5139.74
Testimonial Settings /wp-admin/edit.php?post_type=testimonial&page=testimonial-settings3.3642.28
Add New Item /wp-admin/post-new.php?post_type=testimonial3.5362.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
testimonial_post_count
theysaidso_admin_options
widget_recent-comments
testimonial_content
testimonial_title
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Bootstrap Multi-language Responsive Testimonials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20613.73 ▼0.677.82 ▲5.7551.34 ▼0.38
Dashboard /wp-admin2,250 ▲655.90 ▲0.0594.76 ▼19.9238.46 ▼8.21
Posts /wp-admin/edit.php2,130 ▲442.03 ▲0.0741.29 ▲4.9033.93 ▼0.25
Add New Post /wp-admin/post-new.php1,546 ▲1017.56 ▼5.78676.34 ▲5.1554.50 ▼2.01
Media Library /wp-admin/upload.php1,423 ▲324.31 ▲0.0995.37 ▼6.4942.38 ▼0.87
Testimonial /wp-admin/edit.php?post_type=testimonial1,1501.9529.9632.32
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial-types&post_type=testimonial1,3002.1429.2826.67
Testimonial Settings /wp-admin/edit.php?post_type=testimonial&page=testimonial-settings9072.0222.5441.13
Add New Item /wp-admin/post-new.php?post_type=testimonial2,5577.74169.3564.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bootstrap-multi-language-responsive-testimonials/testimonial.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bootstrap-multi-language-responsive-testimonials/wpt-posttype-testimonial.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bootstrap-multi-language-responsive-testimonials/template-testimonial.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image_src() in wp-content/plugins/bootstrap-multi-language-responsive-testimonials/content-testimonial.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bootstrap-multi-language-responsive-testimonials/testimonial-shortcode.php:3

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Testimonial page.), #2 (Testimonial Section Generated From Shortcode.), #3 (Add New Testimonial Item In Admin Area.), #4 (Testimonial Listing In Admin Area.), #5 (Testimonial Admin Settings.)
Please take inspiration from this readme.txt

bootstrap-multi-language-responsive-testimonials/testimonial.php 85% from 13 tests

The entry point to "Bootstrap Multi-language Responsive Testimonials" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bootstrap-multi-language-responsive-testimonials.php" instead of "testimonial.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,755 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS446356,190
PHP5225110554
JavaScript311411

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
8 PNG files occupy 0.42MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png47.40KB14.86KB▼ 68.65%
images/controls.png1.42KB1.42KB0.27%
screenshot-3.png83.32KB24.49KB▼ 70.60%
images/nav-control.png1.91KB0.90KB▼ 52.89%
screenshot-5.png34.25KB19.28KB▼ 43.70%