83% wp-responsive-testimonial-slider

Code Review | WP Responsive Testimonial Slider

WordPress plugin WP Responsive Testimonial Slider scored83%from 54 tests.

About plugin

  • Plugin page: wp-responsive-tes...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: May 27, 2015
  • Number of updates: 4
  • Update frequency: every 196.3 days
  • Top authors: Omikant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /948 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.56ms] Passed 4 tests

An overview of server-side resources used by WP Responsive Testimonial Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.75 ▼1.51
Dashboard /wp-admin3.34 ▲0.0348.92 ▲1.52
Posts /wp-admin/edit.php3.39 ▲0.0348.18 ▼4.27
Add New Post /wp-admin/post-new.php5.92 ▲0.03101.47 ▼9.24
Media Library /wp-admin/upload.php3.26 ▲0.0334.25 ▲0.80
Add New /wp-admin/post-new.php?post_type=testimonials3.3845.19
All Testimonials /wp-admin/edit.php?post_type=testimonials3.3037.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Responsive Testimonial Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.60 ▼0.789.92 ▲8.3540.77 ▲1.66
Dashboard /wp-admin2,233 ▲454.84 ▼0.04113.09 ▲10.5743.05 ▼0.66
Posts /wp-admin/edit.php2,116 ▲242.03 ▼0.0344.92 ▲1.5835.62 ▼1.20
Add New Post /wp-admin/post-new.php1,565 ▲3218.57 ▼4.80603.81 ▼64.2158.39 ▼1.58
Media Library /wp-admin/upload.php1,418 ▲304.24 ▼0.07103.69 ▲2.4542.54 ▼3.00
Add New /wp-admin/post-new.php?post_type=testimonials2,1637.73173.0563.94
All Testimonials /wp-admin/edit.php?post_type=testimonials1,0891.9929.5328.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× 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/wp-responsive-testimonial-slider/wpiconlistcarousel.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Admin list interface showing Slider images and titles.), #2 (Example output.(see documentation).)
You can look at the official readme.txt

wp-responsive-testimonial-slider/wpiconlistcarousel.php 85% from 13 tests

The main PHP file in "WP Responsive Testimonial Slider" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-responsive-testimonial-slider.php" instead of "wpiconlistcarousel.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 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
Success! There were no dangerous files found in this plugin1,607 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2207171,335
PHP1613139
CSS21318133

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/grabbing.png0.11KB0.14KB0.00%
images/arrow.png10.96KB5.73KB▼ 47.67%