10% lr-wp-testimonials-with-slider

Code Review | LR WP Testimonials with slider

WordPress plugin LR WP Testimonials with slider scored 10% from 54 tests.

About plugin

  • Plugin page: lr-wp-testimonial...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 26, 2018
  • Latest release: Mar 26, 2018
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: logicrays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 530 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/lr-wp-testimonials-with-slider/lrwp-testimoanils-slider.php+68
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.84MB] [CPU: ▼52.03ms] Passed 4 tests

Analyzing server-side resources used by LR WP Testimonials with slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.326.41 ▼37.34
Dashboard /wp-admin2.16 ▼1.147.20 ▼44.23
Posts /wp-admin/edit.php2.16 ▼1.197.00 ▼39.54
Add New Post /wp-admin/post-new.php2.16 ▼3.726.23 ▼87.02
Media Library /wp-admin/upload.php2.16 ▼1.075.85 ▼27.61
Add New Testimonial /wp-admin/post-new.php?post_type=lrwp_testimonial2.166.69
LR Testimonial /wp-admin/edit.php?post_type=lrwp_testimonial2.168.05
Settings /wp-admin/edit.php?post_type=lrwp_testimonial&page=lrwp-setting-page2.166.22

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for LR WP Testimonials with slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16713.55 ▼1.135.89 ▲3.4160.93 ▲12.62
Dashboard /wp-admin2,237 ▲494.86 ▼1.04103.58 ▼11.3438.73 ▼9.13
Posts /wp-admin/edit.php2,120 ▲342.04 ▲0.0236.06 ▼1.8330.69 ▼1.59
Add New Post /wp-admin/post-new.php1,554 ▲3518.49 ▼4.74646.81 ▼17.9756.11 ▲4.42
Media Library /wp-admin/upload.php1,419 ▲344.23 ▲0.0596.00 ▼9.4345.55 ▼1.81
Add New Testimonial /wp-admin/post-new.php?post_type=lrwp_testimonial2,2647.84172.2065.27
LR Testimonial /wp-admin/edit.php?post_type=lrwp_testimonial1,0932.0031.6230.56
Settings /wp-admin/edit.php?post_type=lrwp_testimonial&page=lrwp-setting-page9682.0322.0328.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/lr-wp-testimonials-with-slider/lrwp-testimoanils-slider.php+68
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=lrwp_testimonial&page=lrwp-setting-page
    • > Notice in wp-content/plugins/lr-wp-testimonials-with-slider/lrwp-testimoanils-slider.php+284
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-wp-testimonials-with-slider/includes/lrwp-style3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lr-wp-testimonials-with-slider/lrwp-testimoanils-slider.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-wp-testimonials-with-slider/includes/lrwp-style2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-wp-testimonials-with-slider/includes/lrwp-style1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-wp-testimonials-with-slider/includes/lrwp-style4.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 your attention:
  • Stable tag: Not defined
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

lr-wp-testimonials-with-slider/lrwp-testimoanils-slider.php 85% from 13 tests

Analyzing the main PHP file in "LR WP Testimonials with slider" version 1.0
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lr-wp-testimonials-with-slider.php" instead of "lrwp-testimoanils-slider.php")

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
No dangerous file extensions were detected1,392 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP577522
SVG100504
CSS8126364
JavaScript1052

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin