83% we-testimonial-slider

Code Review | WE - Testimonial Slider

WordPress plugin WE - Testimonial Slider scored83%from 54 tests.

About plugin

  • Plugin page: we-testimonial-sl...
  • Plugin version: 1.5
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 23, 2018
  • Latest release: Jul 6, 2023
  • Number of updates: 20
  • Update frequency: every 84.4 days
  • Top authors: wordpresteem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WE - Testimonial Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0129.88 ▼8.46
Dashboard /wp-admin3.40 ▲0.1052.06 ▼0.46
Posts /wp-admin/edit.php3.45 ▲0.1054.09 ▲3.77
Add New Post /wp-admin/post-new.php3.25 ▼2.6438.75 ▼62.32
Media Library /wp-admin/upload.php3.33 ▲0.1042.84 ▲3.37
WE Testimonial /wp-admin/edit.php?post_type=testimonial&page=we_testimonial_setting_page3.2933.89
Testimonials /wp-admin/edit.php?post_type=testimonial3.3738.55
Categories /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial3.3341.21
Add new /wp-admin/post-new.php?post_type=testimonial3.2537.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
testimonial-category_children
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WE - Testimonial Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17613.84 ▼0.548.61 ▲6.4841.50 ▲3.90
Dashboard /wp-admin2,224 ▲495.58 ▼0.1185.84 ▼18.1140.00 ▼1.01
Posts /wp-admin/edit.php2,138 ▲382.02 ▼0.1136.28 ▼0.6835.24 ▲1.58
Add New Post /wp-admin/post-new.php1,574 ▲4823.50 ▲5.81659.54 ▼35.2449.66 ▼10.47
Media Library /wp-admin/upload.php1,435 ▲354.20 ▲0.0796.29 ▼26.7745.51 ▼2.11
WE Testimonial /wp-admin/edit.php?post_type=testimonial&page=we_testimonial_setting_page1,1392.0224.5031.62
Testimonials /wp-admin/edit.php?post_type=testimonial1,1071.9932.3731.76
Categories /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial1,4172.1526.3330.60
Add new /wp-admin/post-new.php?post_type=testimonial2,4597.65175.1866.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • testimonial-category_children
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/we-testimonial-slider/includes/testimonial_init.php+171
    Undefined index: we_testimonial_author_meta_box_nonce

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: The official readme.txt is a good inspiration

we-testimonial-slider/we-testimonial.php 85% from 13 tests

"WE - Testimonial Slider" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 241 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("we-testimonial-slider.php" instead of "we-testimonial.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,723 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS32583,120
SVG30123,015
PHP677113554
JavaScript16334

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions17
▷ Named functions17100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/we-bg.png3.89KB2.06KB▼ 47.10%
images/logo.png22.35KB12.56KB▼ 43.80%