84% slider-text-scroll

Code Review | Slider Text Scroll

WordPress plugin Slider Text Scroll scored84%from 54 tests.

About plugin

  • Plugin page: slider-text-scroll
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2023
  • Latest release: Jun 14, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: 1mdalamin1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.49ms] Passed 4 tests

An overview of server-side resources used by Slider Text Scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.61 ▲8.71
Dashboard /wp-admin3.32 ▲0.0265.36 ▲9.06
Posts /wp-admin/edit.php3.37 ▲0.0256.87 ▲1.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.78 ▼13.05
Media Library /wp-admin/upload.php3.24 ▲0.0245.03 ▲10.12
Text Scroll /wp-admin/admin.php?page=sliderTextScroll3.2137.81
Text Slider /wp-admin/admin.php?page=textSlider3.2136.67

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Slider Text Scroll
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.51 ▼1.2210.15 ▲8.4337.55 ▼5.06
Dashboard /wp-admin2,235 ▲555.66 ▲0.0489.95 ▼1.0741.19 ▼3.22
Posts /wp-admin/edit.php2,137 ▲402.04 ▲0.0342.07 ▲1.6934.69 ▲0.81
Add New Post /wp-admin/post-new.php1,568 ▲4223.33 ▼0.33677.44 ▲7.2552.94 ▼12.95
Media Library /wp-admin/upload.php1,440 ▲404.25 ▲0.0697.21 ▼26.1546.84 ▼1.19
Text Scroll /wp-admin/admin.php?page=sliderTextScroll1,1041.7934.4994.82
Text Slider /wp-admin/admin.php?page=textSlider1,1141.7536.2552.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=sliderTextScroll
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=sliderTextScroll 173 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=sliderTextScroll
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'tagName')" "TypeError: Cannot read properties of null (reading 'tagName')\n at t.value (/wp-content/plugins/slider-text-scroll/js/sts.typed.js?ver=1.0.0:10:7021)\n at new t (/wp-content/plugins/slider-text-scroll/js/sts.typed.js?ver=1.0.0:10:903)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-text-scroll/js/ests_admin_custom.js?ver=1.1.0:14:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=sliderTextScroll
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'tagName')
    • > GET request to /wp-admin/admin.php?page=textSlider
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=textSlider 173 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: text scroll, text carousel, woocommerce text slider, testimonials, simple slider text scroll...

slider-text-scroll/slider-text-scroll.php Passed 13 tests

This is the main PHP file of "Slider Text Scroll" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Easy to add Slider Text Scroll via shortcode [sts] for every WordPress theme. It Designed, Developed, Maintained & Supported by vir-za Team.

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
No dangerous file extensions were detected592 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP16528413
CSS21337122
JavaScript481857

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png1.55KB0.82KB▼ 47.07%
img/youTube.png18.01KB1.90KB▼ 89.47%