78% best-wp-testimonial

Code Review | Best WP Testimonial

WordPress plugin Best WP Testimonial scored78%from 54 tests.

About plugin

  • Plugin page: best-wp-testimonial
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2021
  • Latest release: Mar 25, 2023
  • Number of updates: 8
  • Update frequency: every 92.4 days
  • Top authors: dhasib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼19.51ms] Passed 4 tests

This is a short check of server-side resources used by Best WP Testimonial
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.95 ▲1.19
Dashboard /wp-admin3.39 ▲0.0445.15 ▼23.15
Posts /wp-admin/edit.php3.44 ▲0.0844.33 ▲1.60
Add New Post /wp-admin/post-new.php3.22 ▼2.6734.18 ▼56.51
Media Library /wp-admin/upload.php3.31 ▲0.0834.54 ▲0.45
Add New /wp-admin/post-new.php?post_type=testimonial3.1732.72
Settings /wp-admin/edit.php?post_type=testimonial&page=bwpt-settings-page3.2831.85
All Items /wp-admin/edit.php?post_type=testimonial3.3537.22

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

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

Browser metrics Passed 4 tests

Best WP Testimonial: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲19714.06 ▼0.236.02 ▲4.1738.62 ▼5.73
Dashboard /wp-admin2,259 ▲775.05 ▼0.9299.49 ▼7.8336.24 ▼2.25
Posts /wp-admin/edit.php2,141 ▲492.29 ▲0.2638.18 ▼2.5533.17 ▼2.66
Add New Post /wp-admin/post-new.php1,554 ▲4023.25 ▲5.79678.12 ▲63.3537.06 ▼18.21
Media Library /wp-admin/upload.php1,438 ▲474.43 ▲0.2397.29 ▼4.0243.72 ▼0.54
Add New /wp-admin/post-new.php?post_type=testimonial2,2487.76182.0766.61
Settings /wp-admin/edit.php?post_type=testimonial&page=bwpt-settings-page1,0512.4346.8025.58
All Items /wp-admin/edit.php?post_type=testimonial1,1112.2433.3527.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/best-wp-testimonial/inc/meta-box.php+43
    Undefined index: testi_name
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/best-wp-testimonial/inc/meta-box.php+44
    Undefined index: testi_desig
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/best-wp-testimonial/inc/meta-box.php+45
    Undefined index: testi_rating

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-testimonial/inc/bwpt-dynamic-css.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-testimonial/inc/functions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-testimonial/best-wp-testimonial.php:25

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Front End), #2 (Ticker Settings), #3 (Back End)
The official readme.txt is a good inspiration

best-wp-testimonial/best-wp-testimonial.php 92% from 13 tests

The main file in "Best WP Testimonial" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important 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

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
There were no executable files found in this plugin5,575 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG1005,028
PHP43074284
CSS506196
JavaScript35767

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png102.70KB23.66KB▼ 76.97%
screenshot-1.png45.19KB15.93KB▼ 64.75%
screenshot-3.png68.17KB26.55KB▼ 61.06%