78% testimonials-builder

Code Review | Testimonials Builder

WordPress plugin Testimonials Builder scored78%from 54 tests.

About plugin

  • Plugin page: testimonials-builder
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Jul 6, 2019
  • Number of updates: 8
  • Update frequency: every 35.9 days
  • Top authors: adreastrian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.22ms] Passed 4 tests

This is a short check of server-side resources used by Testimonials Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.20 ▲1.25
Dashboard /wp-admin3.41 ▲0.1046.88 ▼1.45
Posts /wp-admin/edit.php3.52 ▲0.1649.66 ▲5.45
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.21 ▼7.46
Media Library /wp-admin/upload.php3.33 ▲0.1034.55 ▲2.78

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonials Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.23 ▼1.161.91 ▼0.1541.64 ▼2.65
Dashboard /wp-admin2,247 ▲594.87 ▼0.05108.04 ▼9.3041.72 ▼2.47
Posts /wp-admin/edit.php2,134 ▲452.01 ▲0.0040.27 ▼0.4535.41 ▼4.15
Add New Post /wp-admin/post-new.php1,543 ▲2423.25 ▲0.07658.10 ▲37.5156.74 ▲5.51
Media Library /wp-admin/upload.php1,427 ▲364.21 ▲0.0795.82 ▼9.7942.07 ▼2.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/testimonials-builder/views/render_view.php
    • > /wp-content/plugins/testimonials-builder/views/admin_view.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant TESTIMONIALS_BUILDER_DIR_URL - assumed 'TESTIMONIALS_BUILDER_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials-builder/views/mockdata.php on line 3
    • > PHP Warning
      Use of undefined constant TESTIMONIALS_BUILDER_DIR_URL - assumed 'TESTIMONIALS_BUILDER_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/testimonials-builder/views/mockdata.php on line 3
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/testimonials-builder/views/render_view.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

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

The main PHP script in "Testimonials Builder" version 1.0.1 is automatically included on every request by WordPress
97 characters long description:
The easiest & fastest, coding-free, responsive customer testimonials builder plugin on WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,874 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44909612,006
PHP1313824796
JSON20040
SVG11030
CSS2002

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.31
Average class complexity2.89
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1655.17%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/logo5.png13.21KB5.44KB▼ 58.84%
public/images/tiledClassic.png0.84KB0.25KB▼ 70.23%
public/images/fluent-icon.png8.98KB5.26KB▼ 41.43%
public/images/bug.png2.95KB3.09KB0.00%
public/images/slider.png0.96KB0.31KB▼ 67.28%