74% wp-testimonial-carousel

Code Review | WP Testimonial Carousel

WordPress plugin WP Testimonial Carousel scored74%from 54 tests.

About plugin

  • Plugin page: wp-testimonial-ca...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2016
  • Latest release: Feb 20, 2016
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: Umakant_dataman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,710 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼45.22ms] Passed 4 tests

Server-side resources used by WP Testimonial Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.15 ▼27.29
Dashboard /wp-admin2.78 ▼0.5215.38 ▼35.78
Posts /wp-admin/edit.php2.78 ▼0.5815.41 ▼33.75
Add New Post /wp-admin/post-new.php2.78 ▼3.1115.76 ▼84.06
Media Library /wp-admin/upload.php2.78 ▼0.4514.10 ▼21.24

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

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

Browser metrics Passed 4 tests

WP Testimonial Carousel: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17213.58 ▼0.829.30 ▲7.5741.57 ▼1.16
Dashboard /wp-admin2,203 ▲185.79 ▼0.0997.10 ▼2.1641.30 ▼1.56
Posts /wp-admin/edit.php2,086 ▼31.99 ▲0.0135.45 ▼2.9531.21 ▼0.42
Add New Post /wp-admin/post-new.php1,542 ▲2318.32 ▼5.12601.47 ▼78.8849.47 ▼4.34
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0393.03 ▼1.5741.69 ▼4.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'testimonial_list' not found or invalid function name
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× 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/wp-testimonial-carousel/wp-testimonial-carousel.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin list interface showing Slider images and titles.), #2 (Example output.(see documentation).)
You can take inspiration from this readme.txt

wp-testimonial-carousel/wp-testimonial-carousel.php Passed 13 tests

"WP Testimonial Carousel" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
92 characters long description:
WP Testimonial Carousel Plugin is for Add Testimonials with this Shortcode '[testimonials]'.

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
Good job! No executable or dangerous file extensions detected1,607 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2207171,335
PHP1613139
CSS21318133

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
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%