83% text-slider-testimonial

Code Review | Text Sliders

WordPress plugin Text Sliders scored83%from 54 tests.

About plugin

  • Plugin page: text-slider-testi...
  • Plugin version: 3.8.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: Nov 29, 2021
  • Number of updates: 39
  • Update frequency: every 24.7 days
  • Top authors: braveness (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /10,808 total downloads

Benchmarks

Plugin footprint 82% 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.20MB] [CPU: ▲0.65ms] 75% from 4 tests

A check of server-side resources used by Text Sliders
Please have a look at the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 2,465.30ms on /wp-admin/edit.php?post_type=text_slider&page=textsliderglobalsettings)
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2050.43 ▲5.83
Dashboard /wp-admin3.50 ▲0.2067.83 ▲13.46
Posts /wp-admin/edit.php3.60 ▲0.2457.78 ▲4.38
Add New Post /wp-admin/post-new.php6.09 ▲0.2192.46 ▼3.82
Media Library /wp-admin/upload.php3.42 ▲0.1946.46 ▼3.78
Add New /wp-admin/post-new.php?post_type=text_slider3.5660.34
Global Settings /wp-admin/edit.php?post_type=text_slider&page=textsliderglobalsettings3.502,465.30
All Text Sliders /wp-admin/edit.php?post_type=text_slider3.4548.52
Categories /wp-admin/edit-tags.php?taxonomy=text_slider_categories&post_type=text_slider3.4241.14
Knowledge Base /wp-admin/edit.php?post_type=text_slider&page=ecpt_textsliderFAQ3.4241.03

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
widget_text_sliders
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
ecpt_text_slider_testimonial_newusers_navigation_bar_free
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Text Sliders
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,052 ▲26613.97 ▼0.3917.98 ▲15.9043.92 ▼2.85
Dashboard /wp-admin2,261 ▲585.87 ▲0.0298.54 ▼24.1838.07 ▼6.61
Posts /wp-admin/edit.php2,143 ▲432.05 ▲0.0435.05 ▼0.5031.56 ▼1.79
Add New Post /wp-admin/post-new.php1,562 ▲3117.70 ▼5.33688.35 ▲30.1158.21 ▼0.87
Media Library /wp-admin/upload.php1,440 ▲434.29 ▲0.07101.41 ▼6.7745.45 ▼0.78
Add New /wp-admin/post-new.php?post_type=text_slider2,5197.69181.1274.10
Global Settings /wp-admin/edit.php?post_type=text_slider&page=textsliderglobalsettings1,4412.1125.6546.76
All Text Sliders /wp-admin/edit.php?post_type=text_slider1,1242.0134.7731.65
Categories /wp-admin/edit-tags.php?taxonomy=text_slider_categories&post_type=text_slider1,3202.2129.5233.14
Knowledge Base /wp-admin/edit.php?post_type=text_slider&page=ecpt_textsliderFAQ1,0692.0523.7831.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • ecpt_text_slider_testimonial_newusers_navigation_bar_free
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_text_sliders
    • widget_recent-comments
    • theysaidso_admin_options

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 everything seems fine, this is not 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/text-slider-testimonial/admin/knowledgebase.php

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)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

text-slider-testimonial/textslidertestimonial.php 77% from 13 tests

"Text Sliders" version 3.8.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("text-slider-testimonial.php" instead of "textslidertestimonial.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin1,914 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP92341131,143
CSS54338419
JavaScript5130217352

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
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
asset/images/angle-left.png0.35KB0.22KB▼ 35.96%
asset/images/text.png12.34KB4.68KB▼ 62.11%
asset/images/angle-right.png0.33KB0.24KB▼ 29.24%