84% wptestimonialslider

Code Review | WP Testimonial Slider

WordPress plugin WP Testimonial Slider scored84%from 54 tests.

About plugin

  • Plugin page: wptestimonialslider
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Jun 6, 2015
  • Number of updates: 6
  • Update frequency: every 8.5 days
  • Top authors: wptestimonialslider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.17ms] Passed 4 tests

A check of server-side resources used by WP Testimonial Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.49 ▼8.54
Dashboard /wp-admin3.38 ▲0.0849.01 ▼4.76
Posts /wp-admin/edit.php3.43 ▲0.0751.61 ▲0.56
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.88 ▼15.92
Media Library /wp-admin/upload.php3.30 ▲0.0738.63 ▲2.11
Add New /wp-admin/post-new.php?post_type=wptestimonialslider3.4251.39
All Testimonials /wp-admin/edit.php?post_type=wptestimonialslider3.3438.64

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Testimonial Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲18813.90 ▼0.639.43 ▲7.5538.91 ▼4.20
Dashboard /wp-admin2,247 ▲705.61 ▼0.1783.41 ▼18.4893.76 ▲46.25
Posts /wp-admin/edit.php2,150 ▲471.99 ▼0.0135.24 ▼1.2436.55 ▼1.25
Add New Post /wp-admin/post-new.php6,356 ▲4,83023.12 ▼0.521,008.51 ▲348.2665.80 ▲16.47
Media Library /wp-admin/upload.php1,443 ▲464.19 ▼0.04100.87 ▼3.4881.65 ▲35.10
Add New /wp-admin/post-new.php?post_type=wptestimonialslider2,4277.67184.57107.60
All Testimonials /wp-admin/edit.php?post_type=wptestimonialslider1,1671.9730.8536.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptestimonialslider/wptestimonialslider-script.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wptestimonialslider/wptestimonialslider-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptestimonialslider/wptestimonialslider-metabox.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptestimonialslider/wptestimonialslider-cpt.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptestimonialslider/wptestimonialslider-shortcode.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: responsive testimonial slider, easy testimonial slider, testimonial slider wordpress, testimonial plugin, testimonial rotator...

wptestimonialslider/wptestimonialslider.php 92% from 13 tests

Analyzing the main PHP file in "WP Testimonial Slider" version 1.0.2
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected620 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP69473281
JavaScript24234209
CSS1210130

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.23
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%
Functions20
▷ Named functions20100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/next.png2.93KB0.31KB▼ 89.27%
img/wp_testimonial_slider.png3.17KB1.87KB▼ 41.00%
assets/css/prev.png2.94KB0.32KB▼ 89.03%